summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
author Zemiao Zhu <zemiao@google.com> 2020-09-18 17:32:58 -0700
committer Zemiao Zhu <zemiao@google.com> 2020-09-18 17:34:10 -0700
commit53112da78dd59a5537b5dcbfe8fa7cb1293a9e50 (patch)
treebca383586b2513fbb653f720bb3978cf94a0c8e4 /res/layout
parentcce7f88c777d2469d7a59d1cfc3fe85f9707184d (diff)
Align filters with folders in folder view.
Bug: 168244221 Test: manual Change-Id: Icecd35f5a7ad947b877b25e5e8acbbdff968ed57
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/search_chip_item.xml3
-rw-r--r--res/layout/search_chip_row.xml15
2 files changed, 13 insertions, 5 deletions
diff --git a/res/layout/search_chip_item.xml b/res/layout/search_chip_item.xml
index cb6799313..3ee00c290 100644
--- a/res/layout/search_chip_item.xml
+++ b/res/layout/search_chip_item.xml
@@ -20,7 +20,8 @@
android:checkable="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_marginStart="@dimen/search_chip_spacing"
+ android:layout_marginStart="@dimen/search_chip_half_spacing"
+ android:layout_marginEnd="@dimen/search_chip_half_spacing"
android:textAppearance="@style/SearchChipText"
android:textColor="@color/search_chip_text_color"
app:checkedIcon="@drawable/ic_check"
diff --git a/res/layout/search_chip_row.xml b/res/layout/search_chip_row.xml
index 1375177b8..9917bc5ac 100644
--- a/res/layout/search_chip_row.xml
+++ b/res/layout/search_chip_row.xml
@@ -20,9 +20,16 @@
android:layout_height="wrap_content"
android:overScrollMode="never"
android:scrollbars="none">
- <LinearLayout
- android:id="@+id/search_chip_group"
+
+ <FrameLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingEnd="@dimen/search_chip_spacing"/>
+ android:layout_height="wrap_content" >
+
+ <LinearLayout
+ android:id="@+id/search_chip_group"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="@dimen/search_chip_group_margin"
+ android:layout_marginEnd="@dimen/search_chip_group_margin"/>
+ </FrameLayout>
</HorizontalScrollView> \ No newline at end of file