From 4efa393848eba8eb9c90c5e10593a2043104ea26 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Tue, 19 Jul 2016 22:58:03 +0300 Subject: [PATCH] [Quick search] ui fix --- OsmAnd/res/layout/list_shadow_footer.xml | 19 ++ OsmAnd/res/layout/list_shadow_header.xml | 19 ++ OsmAnd/res/layout/search_dialog_fragment.xml | 1 + .../res/layout/search_dialog_list_layout.xml | 6 +- OsmAnd/res/layout/search_list_item.xml | 189 ++++++++++-------- OsmAnd/res/values/styles.xml | 2 - .../search/QuickSearchDialogFragment.java | 49 +++-- .../plus/search/QuickSearchListAdapter.java | 24 +++ 8 files changed, 205 insertions(+), 104 deletions(-) create mode 100644 OsmAnd/res/layout/list_shadow_footer.xml create mode 100644 OsmAnd/res/layout/list_shadow_header.xml diff --git a/OsmAnd/res/layout/list_shadow_footer.xml b/OsmAnd/res/layout/list_shadow_footer.xml new file mode 100644 index 0000000000..48934ddf2c --- /dev/null +++ b/OsmAnd/res/layout/list_shadow_footer.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/list_shadow_header.xml b/OsmAnd/res/layout/list_shadow_header.xml new file mode 100644 index 0000000000..5cbb2c9c45 --- /dev/null +++ b/OsmAnd/res/layout/list_shadow_header.xml @@ -0,0 +1,19 @@ + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/search_dialog_fragment.xml b/OsmAnd/res/layout/search_dialog_fragment.xml index 03761e529c..e0a9548f2c 100644 --- a/OsmAnd/res/layout/search_dialog_fragment.xml +++ b/OsmAnd/res/layout/search_dialog_fragment.xml @@ -73,6 +73,7 @@ android:id="@+id/tab_layout" android:layout_width="match_parent" android:layout_height="wrap_content" + android:background="?attr/ctx_menu_info_view_bg" android:theme="?attr/search_tabbar_layout_theme" app:tabGravity="fill" app:tabMaxWidth="0dp" diff --git a/OsmAnd/res/layout/search_dialog_list_layout.xml b/OsmAnd/res/layout/search_dialog_list_layout.xml index b330c962b0..ab43c43fc9 100644 --- a/OsmAnd/res/layout/search_dialog_list_layout.xml +++ b/OsmAnd/res/layout/search_dialog_list_layout.xml @@ -7,7 +7,9 @@ + android:layout_height="match_parent" + android:divider="@null" + android:dividerHeight="0dp" + android:drawSelectorOnTop="true"/> \ No newline at end of file diff --git a/OsmAnd/res/layout/search_list_item.xml b/OsmAnd/res/layout/search_list_item.xml index 7c018c4283..c03c637c00 100644 --- a/OsmAnd/res/layout/search_list_item.xml +++ b/OsmAnd/res/layout/search_list_item.xml @@ -3,117 +3,130 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" - android:minHeight="60dp" - android:orientation="horizontal" - android:paddingBottom="8dp" - android:paddingLeft="16dp" - android:paddingRight="16dp" - android:paddingTop="8dp"> - - + android:orientation="vertical"> + android:orientation="horizontal" + android:minHeight="60dp" + android:paddingBottom="8dp" + android:paddingLeft="16dp" + android:paddingRight="16dp" + android:paddingTop="8dp"> + + - - + android:layout_gravity="center_vertical" + android:layout_marginLeft="8dp" + android:orientation="vertical"> + + + + + + + + + + + + + + - - + + + + + + + tools:text="10-12 am"/> - - - - - - - - - - - - + + \ No newline at end of file diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml index ad2a19cc36..d3c386737a 100644 --- a/OsmAnd/res/values/styles.xml +++ b/OsmAnd/res/values/styles.xml @@ -159,7 +159,6 @@ @color/osmand_orange @color/searchbar_tab_inactive_light @color/searchbar_tab_inactive_light - @color/ctx_menu_info_view_bg_light