From d313749cb16d0a751eed52f766768cd77e1cc2c8 Mon Sep 17 00:00:00 2001 From: Christine Coenen Date: Fri, 22 Oct 2021 20:07:06 +0200 Subject: [PATCH] Style search input --- .../res/layout/fragment_mediathek_list.xml | 4 +-- .../res/layout/mediathek_filter_content.xml | 25 +++++++++++++------ app/src/main/res/values/styles.xml | 8 +++--- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/app/src/main/res/layout/fragment_mediathek_list.xml b/app/src/main/res/layout/fragment_mediathek_list.xml index c4dd465a..30da4024 100644 --- a/app/src/main/res/layout/fragment_mediathek_list.xml +++ b/app/src/main/res/layout/fragment_mediathek_list.xml @@ -82,9 +82,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/colorBackground" - android:clipToPadding="false" - android:elevation="8dp" - app:behavior_peekHeight="60dp" + app:behavior_peekHeight="46dp" app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> diff --git a/app/src/main/res/layout/mediathek_filter_content.xml b/app/src/main/res/layout/mediathek_filter_content.xml index f5580369..6fa6c6ec 100644 --- a/app/src/main/res/layout/mediathek_filter_content.xml +++ b/app/src/main/res/layout/mediathek_filter_content.xml @@ -5,25 +5,32 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:paddingHorizontal="@dimen/activity_horizontal_margin" android:paddingBottom="@dimen/activity_vertical_margin"> + app:endIconTint="?colorOnPrimarySurface" + app:hintEnabled="false" + app:startIconDrawable="@drawable/ic_baseline_search_24" + app:startIconTint="?colorOnPrimarySurface"> + + android:inputType="textFilter" + android:maxLines="1" + android:paddingVertical="0dp" + android:textColor="?colorOnPrimarySurface" + android:textColorHint="#66ffffff" /> @@ -31,6 +38,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="@dimen/activity_vertical_margin" + android:paddingHorizontal="@dimen/activity_horizontal_margin" android:text="Sendungslänge" />