From 5f61642f568ee15838f473a604eee77901ef1b5e Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Sun, 24 Feb 2019 18:45:10 +0400 Subject: [PATCH] Now suggestion hints are light. --- app/src/main/AndroidManifest.xml | 2 +- .../vrcatalog/view/MainActivity.java | 1 - app/src/main/res/layout/app_bar_main.xml | 2 + .../main/res/layout/light_suggestion_hint.xml | 95 +++++++++++++++++++ app/src/main/res/values-v21/styles.xml | 5 + app/src/main/res/values/styles.xml | 10 ++ 6 files changed, 113 insertions(+), 2 deletions(-) create mode 100644 app/src/main/res/layout/light_suggestion_hint.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 371f056..c48cb8e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -15,7 +15,7 @@ + android:theme="@style/MainActivity"> diff --git a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java index 12ec8bd..3be56e8 100644 --- a/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java +++ b/app/src/main/java/ru/volgorobot/vrcatalog/view/MainActivity.java @@ -101,7 +101,6 @@ public class MainActivity extends AppCompatActivity return super.onOptionsItemSelected(item); } - @SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { // Handle navigation view item clicks here. diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 1916f82..45fe46a 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -16,6 +16,8 @@ android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" android:background="?attr/colorPrimary" + android:theme="@style/CustomSearchStyle" + app:titleTextColor="@android:color/white" app:popupTheme="@style/AppTheme.PopupOverlay" /> diff --git a/app/src/main/res/layout/light_suggestion_hint.xml b/app/src/main/res/layout/light_suggestion_hint.xml new file mode 100644 index 0000000..97a7726 --- /dev/null +++ b/app/src/main/res/layout/light_suggestion_hint.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index f6e076e..259986b 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -25,4 +25,9 @@ @android:color/black @android:color/black + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 147937c..c4c7268 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -5,6 +5,16 @@ @color/colorAccent + + + +