From 5a41dbb962932153562408c3c83d72d1a730c83b Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Tue, 14 May 2019 14:47:17 +0300 Subject: [PATCH] Selected Profile UI fixes and tweaks --- .../res/drawable/btn_round_profile_blue.xml | 17 +++ .../res/drawable/btn_round_profile_gray.xml | 16 +++ .../res/layout/fragment_selected_profile.xml | 80 +++++++++++--- OsmAnd/res/values/colors.xml | 3 +- .../plus/profiles/EditProfileActivity.java | 3 + .../plus/profiles/EditProfileFragment.java | 100 ++++++++++++++---- 6 files changed, 180 insertions(+), 39 deletions(-) create mode 100644 OsmAnd/res/drawable/btn_round_profile_blue.xml create mode 100644 OsmAnd/res/drawable/btn_round_profile_gray.xml diff --git a/OsmAnd/res/drawable/btn_round_profile_blue.xml b/OsmAnd/res/drawable/btn_round_profile_blue.xml new file mode 100644 index 0000000000..61df3c0cba --- /dev/null +++ b/OsmAnd/res/drawable/btn_round_profile_blue.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/drawable/btn_round_profile_gray.xml b/OsmAnd/res/drawable/btn_round_profile_gray.xml new file mode 100644 index 0000000000..a171b96212 --- /dev/null +++ b/OsmAnd/res/drawable/btn_round_profile_gray.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/res/layout/fragment_selected_profile.xml b/OsmAnd/res/layout/fragment_selected_profile.xml index d55d6f6b2a..1ae32dc3dc 100644 --- a/OsmAnd/res/layout/fragment_selected_profile.xml +++ b/OsmAnd/res/layout/fragment_selected_profile.xml @@ -13,6 +13,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_gravity="top" + android:focusable="true" + android:focusableInTouchMode="true" android:layout_marginBottom="@dimen/setting_profile_item_height"> @@ -137,7 +138,7 @@ @@ -228,7 +230,7 @@ android:drawableRight="@drawable/ic_action_arrow_drop_down" android:focusable="false" android:maxLines="1" - android:textSize="@dimen/default_list_text_size" + tools:text="Car"/> @@ -245,7 +247,7 @@ @@ -356,12 +359,13 @@ android:layout_height="1dp" android:layout_marginStart="64dp" android:layout_marginLeft="64dp" - android:background="?android:attr/listDivider"/> + android:background="@color/divider_light"/> @@ -405,7 +409,7 @@ android:layout_height="1dp" android:layout_marginStart="64dp" android:layout_marginLeft="64dp" - android:background="?android:attr/listDivider" + android:background="@color/divider_light" /> + +