From f0747c65cb62c7866119da033c2bc70726053100 Mon Sep 17 00:00:00 2001 From: Docile-Alligator Date: Wed, 1 Jun 2022 15:41:01 +0800 Subject: Use EditText instead of SimpleSearchView in SearchActivity. --- app/src/main/res/layout/activity_search.xml | 40 ++++++++++------------ .../main/res/layout/activity_view_post_detail.xml | 2 +- 2 files changed, 19 insertions(+), 23 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index 29b5b94f..cb3305fe 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -13,32 +13,28 @@ android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> - - - + android:layout_height="wrap_content" + android:minHeight="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator"> - - - + android:background="#00000000" + android:gravity="top" + android:hint="@string/search" + android:maxLines="1" + android:textSize="?attr/font_20" + android:fontFamily="?attr/font_family" + android:inputType="textNoSuggestions" + android:imeOptions="actionSearch" /> + + diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml index 3746f5c6..6fd17685 100644 --- a/app/src/main/res/layout/activity_view_post_detail.xml +++ b/app/src/main/res/layout/activity_view_post_detail.xml @@ -113,7 +113,7 @@ android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:padding="8dp" - android:src="@drawable/ic_close_black_24dp" + android:src="@drawable/ic_close_24dp" android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" /> -- cgit v1.2.3