diff options
author | Александр Зацепин <az@mapswithme.com> | 2018-03-21 17:37:43 +0300 |
---|---|---|
committer | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-03-22 14:39:32 +0300 |
commit | b78f02b0e859bfc022c8690e5a56f518c6dc1e28 (patch) | |
tree | c717134e22c1d437578df35341b3fa2191f119e7 /android/res | |
parent | 1b44a7ae3f9a3114eefb59862f60098af32ac3e4 (diff) |
[android] Small design fixes regarding bookmarks screen
Diffstat (limited to 'android/res')
-rw-r--r-- | android/res/layout/dialog_edit_text.xml | 2 | ||||
-rw-r--r-- | android/res/layout/item_bookmark_backup.xml | 13 | ||||
-rw-r--r-- | android/res/layout/item_bookmark_category.xml | 2 | ||||
-rw-r--r-- | android/res/layout/item_bookmark_create_group.xml | 5 | ||||
-rw-r--r-- | android/res/layout/item_bookmark_hide_all.xml | 9 |
5 files changed, 22 insertions, 9 deletions
diff --git a/android/res/layout/dialog_edit_text.xml b/android/res/layout/dialog_edit_text.xml index fb184187f8..d90f6d92d2 100644 --- a/android/res/layout/dialog_edit_text.xml +++ b/android/res/layout/dialog_edit_text.xml @@ -23,8 +23,8 @@ style="@style/MwmWidget.PlacePage.EditText" android:layout_width="match_parent" android:layout_height="wrap_content" - android:inputType="text" android:maxLength="100" + android:inputType="text|textCapSentences" android:singleLine="true"/> </android.support.design.widget.TextInputLayout> diff --git a/android/res/layout/item_bookmark_backup.xml b/android/res/layout/item_bookmark_backup.xml index d6dd8b95aa..2ca9b866d8 100644 --- a/android/res/layout/item_bookmark_backup.xml +++ b/android/res/layout/item_bookmark_backup.xml @@ -22,17 +22,22 @@ android:layout_width="0dp" android:layout_weight="1" android:layout_height="wrap_content" - android:textAppearance="@style/MwmTextAppearance.Body3" - android:textAllCaps="true" + android:textAppearance="@style/MwmTextAppearance.Body3.Primary" android:gravity="start|center_vertical" - android:text="@string/settings_backup_bookmarks"/> + android:text="@string/settings_backup_bookmarks" + android:fontFamily="@string/robotoMedium" + tools:targetApi="jelly_bean"/> </LinearLayout> <LinearLayout android:id="@+id/content" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" - android:padding="@dimen/margin_base"> + android:paddingStart="@dimen/margin_base" + android:paddingLeft="@dimen/margin_base" + android:paddingEnd="@dimen/margin_base" + android:paddingRight="@dimen/margin_base" + android:paddingBottom="@dimen/margin_base"> <TextView android:id="@+id/message" android:layout_width="match_parent" diff --git a/android/res/layout/item_bookmark_category.xml b/android/res/layout/item_bookmark_category.xml index 652e202241..76d3105278 100644 --- a/android/res/layout/item_bookmark_category.xml +++ b/android/res/layout/item_bookmark_category.xml @@ -25,7 +25,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="@dimen/margin_base" - android:ellipsize="end" + android:ellipsize="middle" android:singleLine="true" android:textAppearance="@style/MwmTextAppearance.Body1" tools:text="Bookmark name looooooooooooooooooongasdasdasd"/> diff --git a/android/res/layout/item_bookmark_create_group.xml b/android/res/layout/item_bookmark_create_group.xml index 9aaa199ed4..09b5b2614c 100644 --- a/android/res/layout/item_bookmark_create_group.xml +++ b/android/res/layout/item_bookmark_create_group.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -25,5 +26,7 @@ android:textAppearance="@style/MwmTextAppearance.Body3" android:textAllCaps="true" android:text="@string/bookmarks_create_new_group" - android:textColor="?colorAccent"/> + android:textColor="?colorAccent" + android:fontFamily="@string/robotoMedium" + tools:targetApi="jelly_bean"/> </LinearLayout> diff --git a/android/res/layout/item_bookmark_hide_all.xml b/android/res/layout/item_bookmark_hide_all.xml index efe2c7589f..5fd0f26f4c 100644 --- a/android/res/layout/item_bookmark_hide_all.xml +++ b/android/res/layout/item_bookmark_hide_all.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:tools="http://schemas.android.com/tools" android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -12,7 +13,9 @@ android:layout_marginLeft="@dimen/margin_base" android:layout_marginStart="@dimen/margin_base" android:textAppearance="@style/MwmTextAppearance.Body3" - android:text="@string/bookmarks_groups"/> + android:text="@string/bookmarks_groups" + android:fontFamily="@string/robotoMedium" + tools:targetApi="jelly_bean"/> <TextView android:id="@+id/hide_btn" android:layout_width="wrap_content" @@ -27,5 +30,7 @@ android:textColor="?colorAccent" android:textAllCaps="true" android:background="?selectableItemBackground" - android:text="@string/bookmarks_groups_hide_all"/> + android:text="@string/bookmarks_groups_hide_all" + android:fontFamily="@string/robotoMedium" + tools:targetApi="jelly_bean"/> </LinearLayout> |