forked from organicmaps/organicmaps
Resources and layouts.
This commit is contained in:
parent
3edfc22975
commit
6fa0153029
12 changed files with 81 additions and 53 deletions
|
@ -31,6 +31,20 @@
|
|||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_panel_height"
|
||||
android:background="@drawable/bg_toolbar_button_selector"
|
||||
android:drawableLeft="@drawable/ic_menu_settings"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="10dp"
|
||||
android:text="@string/settings"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_share"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -56,19 +70,5 @@
|
|||
android:text="@string/more_apps_title"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_panel_height"
|
||||
android:background="@drawable/bg_toolbar_button_selector"
|
||||
android:drawableLeft="@drawable/ic_menu_settings"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="10dp"
|
||||
android:text="@string/settings"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
11
android/res/drawable/bg_search_item_green.xml
Normal file
11
android/res/drawable/bg_search_item_green.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:left="@dimen/margin_small"
|
||||
android:right="@dimen/margin_small">
|
||||
<shape>
|
||||
<solid android:color="@color/bg_search_green"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
11
android/res/drawable/bg_search_item_green_selected.xml
Normal file
11
android/res/drawable/bg_search_item_green_selected.xml
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item
|
||||
android:left="@dimen/margin_small"
|
||||
android:right="@dimen/margin_small">
|
||||
<shape>
|
||||
<solid android:color="@color/bg_search_green_pressed"/>
|
||||
</shape>
|
||||
</item>
|
||||
</layer-list>
|
7
android/res/drawable/bg_search_item_green_selector.xml
Normal file
7
android/res/drawable/bg_search_item_green_selector.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item android:drawable="@drawable/bg_search_item_green_selected" android:state_pressed="true"/>
|
||||
<item android:drawable="@drawable/bg_search_item_green"/>
|
||||
|
||||
</selector>
|
|
@ -15,7 +15,7 @@
|
|||
android:id="@+id/search_box"
|
||||
layout="@layout/search_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="@dimen/search_box_height"/>
|
||||
|
||||
<com.mapswithme.maps.widget.MapInfoView
|
||||
android:id="@+id/info_box"
|
||||
|
|
|
@ -26,6 +26,20 @@
|
|||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_panel_height"
|
||||
android:background="@drawable/bg_toolbar_button_selector"
|
||||
android:drawableLeft="@drawable/ic_menu_settings"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="10dp"
|
||||
android:text="@string/settings"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_share"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -51,18 +65,4 @@
|
|||
android:text="@string/more_apps_title"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
<View
|
||||
style="@style/drawerSeparatorMediumPadded"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/btn_settings"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/bottom_panel_height"
|
||||
android:background="@drawable/bg_toolbar_button_selector"
|
||||
android:drawableLeft="@drawable/ic_menu_settings"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="10dp"
|
||||
android:text="@string/settings"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -4,7 +4,7 @@
|
|||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/bg_page_preview"
|
||||
android:background="@color/pp_bg_start"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
android:padding="@dimen/margin_small">
|
||||
|
@ -12,9 +12,11 @@
|
|||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/bg_search_rounded">
|
||||
android:background="@drawable/bg_search_rounded"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/container_progress_search"
|
||||
|
@ -42,15 +44,13 @@
|
|||
style="@style/Holo.TextAppearance.Large.Light"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_weight="1"
|
||||
android:background="@null"
|
||||
android:fontFamily="@string/robotoRegular"
|
||||
android:imeOptions="actionDone"
|
||||
android:inputType="text"
|
||||
android:paddingBottom="@dimen/dp_x_1"
|
||||
android:paddingLeft="@dimen/dp_x_2"
|
||||
android:paddingRight="@dimen/dp_x_2"
|
||||
android:paddingTop="@dimen/dp_x_2"
|
||||
android:padding="@dimen/margin_tiny"
|
||||
android:singleLine="true"
|
||||
android:textColor="@android:color/white"/>
|
||||
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginLeft="@dimen/margin_small"
|
||||
android:layout_weight="1"
|
||||
android:gravity="left|center_vertical"
|
||||
android:orientation="vertical">
|
||||
|
||||
|
@ -44,8 +44,9 @@
|
|||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="0"
|
||||
android:gravity="right"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
|
@ -54,7 +55,7 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@string/robotoRegular"
|
||||
android:textAppearance="@style/Holo.TextAppearance.Medium.Light"
|
||||
android:textColor="@color/text_search_item"
|
||||
android:textColor="@color/text_search_item_greyed"
|
||||
android:textSize="12sp"/>
|
||||
|
||||
<TextView
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<include
|
||||
layout="@layout/search_box"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
android:layout_height="@dimen/search_box_height"/>
|
||||
|
||||
<ListView
|
||||
android:id="@android:id/list"
|
||||
|
|
|
@ -2,10 +2,14 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/search_item_height"
|
||||
android:background="@drawable/bg_toolbar_button_selector"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="vertical">
|
||||
android:orientation="horizontal"
|
||||
android:paddingLeft="@dimen/margin_medium"
|
||||
android:paddingRight="@dimen/margin_medium">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_search_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_menu_about"/>
|
||||
|
@ -18,12 +22,4 @@
|
|||
android:textAppearance="@style/Holo.TextAppearance.Medium.Light"
|
||||
android:textColor="@color/text_search_item"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_search_item_subtitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@string/robotoRegular"
|
||||
android:textAppearance="@style/Holo.TextAppearance.Small.Light"
|
||||
android:textColor="@color/text_search_item"/>
|
||||
|
||||
</LinearLayout>
|
|
@ -45,14 +45,15 @@
|
|||
<color name="green">#0F0</color>
|
||||
<color name="blue">#00F</color>
|
||||
|
||||
|
||||
<color name="pp_bg_start">#15c783</color>
|
||||
<color name="pp_bg_preview_end">#15ca82</color>
|
||||
<color name="pp_bg_end">#15d080</color>
|
||||
|
||||
<color name="bg_menu">#e6414451</color>
|
||||
<color name="bg_bottom_toolbar">#444651</color>
|
||||
<color name="bg_bottom_toolbar_pressed">#15d081</color>
|
||||
<color name="text_search_item">@android:color/white</color>
|
||||
<color name="text_search_item_greyed">@android:color/darker_gray</color>
|
||||
<color name="bg_search_green">#15d080</color>
|
||||
<color name="bg_search_green_pressed">#99ff99</color>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -37,5 +37,6 @@
|
|||
<dimen name="zoom_margin_right">4dp</dimen>
|
||||
<dimen name="map_controls_margin">7dp</dimen>
|
||||
<dimen name="bottom_panel_height">46dp</dimen>
|
||||
<dimen name="search_item_height">@dimen/dp_x_14</dimen>
|
||||
<dimen name="search_item_height">56dp</dimen>
|
||||
<dimen name="search_box_height">56dp</dimen>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Reference in a new issue