aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-02-22 09:26:50 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-02-22 09:26:50 +0000
commitce4773230ab31e84b10b53793331ec6575ce553d (patch)
tree8ff72a8cbb8aa58e550af7eb1d8172cd0f5cb7c6 /app/src/main/res
parent2e72f0d4aa029bad73e1200d22fc6bc1d6df185a (diff)
downloadinfinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar.gz
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar.bz2
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar.lz
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar.xz
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.tar.zst
infinity-for-reddit-ce4773230ab31e84b10b53793331ec6575ce553d.zip
Change SearchView style in MainActivity. Solve tab layout covering fragments in viewpager in SearchActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_search.xml1
-rw-r--r--app/src/main/res/layout/app_bar_main.xml9
2 files changed, 9 insertions, 1 deletions
diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml
index bd440eac..8d080b46 100644
--- a/app/src/main/res/layout/activity_search.xml
+++ b/app/src/main/res/layout/activity_search.xml
@@ -38,6 +38,7 @@
android:id="@+id/view_pager_search_activity"
android:layout_width="match_parent"
android:layout_height="match_parent"
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context=".SearchActivity" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml
index 9c1dfa84..94727b02 100644
--- a/app/src/main/res/layout/app_bar_main.xml
+++ b/app/src/main/res/layout/app_bar_main.xml
@@ -28,7 +28,14 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@android:color/white"
- app:voiceSearch="true"/>
+ app:voiceSearch="true"
+ app:searchBackground="@color/colorPrimary"
+ app:cursorColor="@android:color/white"
+ app:hintColor="#E0E0E0"
+ app:iconsTint="@android:color/white"
+ app:backIconTint="@android:color/white"
+ app:iconsAlpha="1"
+ app:backIconAlpha="1"/>
</FrameLayout>