diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2022-06-01 07:41:01 +0000 |
---|---|---|
committer | Docile-Alligator <chineseperson5@gmail.com> | 2022-06-01 07:41:01 +0000 |
commit | f0747c65cb62c7866119da033c2bc70726053100 (patch) | |
tree | 1410e17926ff62aae4dd416ea44fde1b4e39cf83 /app/src/main/res/layout/activity_search.xml | |
parent | adb77f44d0e01480d80aa354a6af0587401cfdbf (diff) | |
download | infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar.gz infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar.bz2 infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar.lz infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar.xz infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.tar.zst infinity-for-reddit-f0747c65cb62c7866119da033c2bc70726053100.zip |
Use EditText instead of SimpleSearchView in SearchActivity.
Diffstat (limited to 'app/src/main/res/layout/activity_search.xml')
-rw-r--r-- | app/src/main/res/layout/activity_search.xml | 40 |
1 files changed, 18 insertions, 22 deletions
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"> - <FrameLayout - android:id="@+id/toolbar_frame_layout_search_activity" + <androidx.appcompat.widget.Toolbar + android:id="@+id/toolbar" android:layout_width="match_parent" - android:layout_height="wrap_content"> - - <androidx.appcompat.widget.Toolbar - android:id="@+id/toolbar" - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:minHeight="?attr/actionBarSize" - app:popupTheme="@style/AppTheme.PopupOverlay" /> + android:layout_height="wrap_content" + android:minHeight="?attr/actionBarSize" + app:popupTheme="@style/AppTheme.PopupOverlay" + app:navigationIcon="?attr/homeAsUpIndicator"> - <com.ferfalk.simplesearchview.SimpleSearchView - android:id="@+id/search_view_search_activity" + <EditText + android:id="@+id/search_edit_text_search_activity" android:layout_width="match_parent" android:layout_height="match_parent" - app:backIconAlpha="1" - app:backIconTint="@android:color/white" - app:cursorColor="@android:color/white" - app:hintColor="#E0E0E0" - app:iconsAlpha="1" - app:iconsTint="@android:color/white" - app:searchBackground="?attr/colorPrimary" - app:voiceSearch="true" /> - - </FrameLayout> + 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" /> + + </androidx.appcompat.widget.Toolbar> </com.google.android.material.appbar.AppBarLayout> |