aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/item_about_links.xml
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-30 22:02:25 -0700
committerAllan Wang <me@allanwang.ca>2017-06-30 22:02:25 -0700
commite923730a265a68e5d696eaa23a7a3caca80f0826 (patch)
tree90b54c3ec5ea10ddd15a75cd65650a1a5bf97dfc /app/src/main/res/layout/item_about_links.xml
parentf6ae04c42c7e2fabcd4de10290d7e6b5ea83b368 (diff)
downloadfrost-e923730a265a68e5d696eaa23a7a3caca80f0826.tar.gz
frost-e923730a265a68e5d696eaa23a7a3caca80f0826.tar.bz2
frost-e923730a265a68e5d696eaa23a7a3caca80f0826.zip
Programmatically bind link buttons
Diffstat (limited to 'app/src/main/res/layout/item_about_links.xml')
-rw-r--r--app/src/main/res/layout/item_about_links.xml30
1 files changed, 12 insertions, 18 deletions
diff --git a/app/src/main/res/layout/item_about_links.xml b/app/src/main/res/layout/item_about_links.xml
index db831835..52cf3f57 100644
--- a/app/src/main/res/layout/item_about_links.xml
+++ b/app/src/main/res/layout/item_about_links.xml
@@ -1,6 +1,8 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?><!--
+ A greatly compacted link layout with just the ids
+ The constraints are handled programmatically in AboutActivity
+-->
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/about_icons_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -10,24 +12,16 @@
<ImageView
android:id="@+id/about_rate"
android:layout_width="@dimen/kau_avatar_bounds"
- android:layout_height="@dimen/kau_avatar_bounds"
- android:background="?android:attr/selectableItemBackgroundBorderless"
- android:scaleType="center"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/about_github"
- app:layout_constraintHorizontal_chainStyle="spread_inside"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
+ android:layout_height="@dimen/kau_avatar_bounds" />
<ImageView
- android:id="@id/about_github"
+ android:id="@+id/about_reddit"
android:layout_width="@dimen/kau_avatar_bounds"
- android:layout_height="@dimen/kau_avatar_bounds"
- android:background="?android:attr/selectableItemBackgroundBorderless"
- android:scaleType="center"
- app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- app:layout_constraintStart_toEndOf="@id/about_rate"
- app:layout_constraintTop_toTopOf="parent" />
+ android:layout_height="@dimen/kau_avatar_bounds" />
+
+ <ImageView
+ android:id="@+id/about_github"
+ android:layout_width="@dimen/kau_avatar_bounds"
+ android:layout_height="@dimen/kau_avatar_bounds" />
</android.support.constraint.ConstraintLayout> \ No newline at end of file