Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/res/layout/fragment_search.xml2
-rw-r--r--android/res/layout/toolbar_with_search_no_elevation.xml10
-rw-r--r--android/res/values/styles.xml4
3 files changed, 15 insertions, 1 deletions
diff --git a/android/res/layout/fragment_search.xml b/android/res/layout/fragment_search.xml
index 699af18b91..8351a568f9 100644
--- a/android/res/layout/fragment_search.xml
+++ b/android/res/layout/fragment_search.xml
@@ -9,7 +9,7 @@
android:orientation="vertical">
<include
android:id="@+id/toolbar"
- layout="@layout/toolbar_with_search"
+ layout="@layout/toolbar_with_search_no_elevation"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"/>
diff --git a/android/res/layout/toolbar_with_search_no_elevation.xml b/android/res/layout/toolbar_with_search_no_elevation.xml
new file mode 100644
index 0000000000..5e117e39ff
--- /dev/null
+++ b/android/res/layout/toolbar_with_search_no_elevation.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.v7.widget.Toolbar
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/toolbar"
+ style="@style/MwmWidget.ToolbarStyle.NoElevation"
+ android:theme="@style/MwmWidget.ToolbarTheme"
+ android:layout_width="match_parent"
+ android:layout_height="?attr/actionBarSize">
+ <include layout="@layout/toolbar_search_controls"/>
+</android.support.v7.widget.Toolbar>
diff --git a/android/res/values/styles.xml b/android/res/values/styles.xml
index 8c06b5699d..f1bccb61c0 100644
--- a/android/res/values/styles.xml
+++ b/android/res/values/styles.xml
@@ -85,6 +85,10 @@
<item name="titleTextAppearance">@style/MwmTextAppearance.Toolbar.Title.Light</item>
</style>
+ <style name="MwmWidget.ToolbarStyle.NoElevation">
+ <item name="android:elevation" tools:ignore="NewApi">0dp</item>
+ </style>
+
<style name="MwmWidget.ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:gravity">center_vertical</item>
<item name="colorAccent">@android:color/white</item>