aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-06-12 16:51:27 -0700
committerAllan Wang <me@allanwang.ca>2017-06-12 16:51:27 -0700
commita17ae247c496d2ec8038f36428812f3c2e410d87 (patch)
tree310e5a4d49a08dd8dcf876cd8768ce0053ba2df0 /app/src/main/res/layout
parent605a08c2e2e8634263d7626cf7471310add3acb2 (diff)
downloadfrost-a17ae247c496d2ec8038f36428812f3c2e410d87.tar.gz
frost-a17ae247c496d2ec8038f36428812f3c2e410d87.tar.bz2
frost-a17ae247c496d2ec8038f36428812f3c2e410d87.zip
Add kau and web scrolling
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/preference_frost.xml58
1 files changed, 31 insertions, 27 deletions
diff --git a/app/src/main/res/layout/preference_frost.xml b/app/src/main/res/layout/preference_frost.xml
index bcbed7f2..939c6d32 100644
--- a/app/src/main/res/layout/preference_frost.xml
+++ b/app/src/main/res/layout/preference_frost.xml
@@ -2,63 +2,67 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="?android:attr/listPreferredItemHeightSmall"
- android:gravity="center_vertical"
- android:paddingStart="?android:attr/listPreferredItemPaddingStart"
- android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
android:background="?android:attr/activatedBackgroundIndicator"
+ android:baselineAligned="false"
android:clipToPadding="false"
- android:baselineAligned="false">
+ android:gravity="center_vertical"
+ android:minHeight="?android:attr/listPreferredItemHeightSmall"
+ android:paddingEnd="?android:attr/listPreferredItemPaddingEnd"
+ android:paddingStart="?android:attr/listPreferredItemPaddingStart">
<LinearLayout
- android:id="@+id/icon_frame"
+ android:id="@id/pref_view_icon_frame"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="-4dp"
- android:minWidth="60dp"
android:gravity="start|center_vertical"
+ android:minWidth="60dp"
android:orientation="horizontal"
+ android:paddingBottom="4dp"
android:paddingEnd="12dp"
android:paddingTop="4dp"
- android:paddingBottom="4dp">
+ android:visibility="gone">
+
<ImageView
- android:id="@+id/icon"
+ android:id="@id/pref_view_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:maxWidth="48dp"
- android:maxHeight="48dp" />
+ android:maxHeight="48dp"
+ android:maxWidth="48dp" />
</LinearLayout>
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
- android:paddingTop="16dp"
- android:paddingBottom="16dp">
+ android:paddingBottom="16dp"
+ android:paddingTop="16dp">
- <TextView android:id="@+id/title"
+ <TextView
+ android:id="@id/pref_view_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:textAppearance="?android:attr/textAppearanceListItem"
- android:ellipsize="marquee" />
+ android:ellipsize="marquee"
+ android:textAppearance="?android:attr/textAppearanceListItem" />
- <TextView android:id="@+id/summary"
+ <TextView
+ android:id="@id/pref_view_desc"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_below="@id/title"
- android:layout_alignStart="@id/title"
- android:textAppearance="?android:attr/textAppearanceListItemSecondary"
- android:textColor="?android:attr/textColorSecondary"
+ android:layout_alignStart="@id/pref_view_title"
+ android:layout_below="@id/pref_view_title"
+ android:ellipsize="end"
android:maxLines="10"
- android:ellipsize="end" />
+ android:textAppearance="?android:attr/textAppearanceListItemSecondary"
+ android:textColor="?android:attr/textColorSecondary" />
</RelativeLayout>
- <CheckBox
- android:id="@+id/checkbox"
- android:visibility="gone"
- android:paddingStart="16dp"
+ <LinearLayout android:id="@id/pref_view_inner_frame"
android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
+ android:layout_height="match_parent"
+ android:gravity="end|center_vertical"
+ android:paddingLeft="16dp"
+ android:orientation="vertical" />
</LinearLayout> \ No newline at end of file