aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2022-06-01 07:41:01 +0000
committerDocile-Alligator <chineseperson5@gmail.com>2022-06-01 07:41:01 +0000
commitf0747c65cb62c7866119da033c2bc70726053100 (patch)
tree1410e17926ff62aae4dd416ea44fde1b4e39cf83 /app/src/main/res
parentadb77f44d0e01480d80aa354a6af0587401cfdbf (diff)
downloadinfinity-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 '')
-rw-r--r--app/src/main/res/layout/activity_search.xml40
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml2
-rw-r--r--app/src/main/res/menu/search_activity.xml12
3 files changed, 19 insertions, 35 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>
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" />
diff --git a/app/src/main/res/menu/search_activity.xml b/app/src/main/res/menu/search_activity.xml
deleted file mode 100644
index b7abcc32..00000000
--- a/app/src/main/res/menu/search_activity.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- tools:application="ml.docilealligator.infinityforreddit.activities.SearchResultActivity">
- <item
- android:id="@+id/action_search_search_activity"
- android:orderInCategory="1"
- android:title="@string/action_search"
- android:icon="@drawable/ic_search_toolbar_24dp"
- app:showAsAction="ifRoom" />
-</menu>