Fix dialogs padding and text color

This commit is contained in:
Nazar 2020-01-08 12:54:45 +02:00
parent 3fa17b5997
commit 6c03803a8d
2 changed files with 21 additions and 11 deletions

View file

@ -2,6 +2,9 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:paddingTop="@dimen/content_padding"
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:orientation="vertical"> android:orientation="vertical">
<TextView <TextView
@ -9,6 +12,7 @@
android:gravity="center" android:gravity="center"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="?android:textColorSecondary"
android:layout_marginLeft="10dp" android:layout_marginLeft="10dp"
android:layout_marginRight="10dp" android:layout_marginRight="10dp"
android:layout_marginTop="5dp" /> android:layout_marginTop="5dp" />
@ -17,30 +21,33 @@
android:id="@+id/ZoomToDownload" android:id="@+id/ZoomToDownload"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="10dp" android:layout_marginLeft="@dimen/content_padding"
android:layout_marginRight="10dp" android:layout_marginRight="@dimen/content_padding"
android:layout_marginTop="5dp" /> android:layout_marginTop="@dimen/content_padding_small"/>
<LinearLayout <LinearLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content">
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="5dp">
<TextView <TextView
android:text="10" android:text="10"
android:gravity="left" android:gravity="start"
android:layout_weight="0.5" android:layout_weight="0.5"
android:id="@+id/MinZoom" android:id="@+id/MinZoom"
android:textColor="?android:textColorSecondary"
android:paddingLeft="@dimen/content_padding_small"
android:paddingRight="@dimen/content_padding_small"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
<TextView <TextView
android:text="15" android:text="15"
android:gravity="right" android:gravity="end"
android:layout_weight="0.5" android:layout_weight="0.5"
android:id="@+id/MaxZoom" android:id="@+id/MaxZoom"
android:textColor="?android:textColorSecondary"
android:paddingLeft="@dimen/content_padding_small"
android:paddingRight="@dimen/content_padding_small"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />
</LinearLayout> </LinearLayout>
@ -49,6 +56,8 @@
android:text="@string/tiles_to_download_estimated_size" android:text="@string/tiles_to_download_estimated_size"
android:gravity="center" android:gravity="center"
android:id="@+id/DownloadDescription" android:id="@+id/DownloadDescription"
android:layout_marginTop="@dimen/content_padding_small"
android:textColor="?android:textColorSecondary"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content" />

View file

@ -48,6 +48,7 @@
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="2" android:maxLines="2"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_list_text_size" android:textSize="@dimen/default_list_text_size"
tools:text="Some waypoint text"/> tools:text="Some waypoint text"/>
@ -75,7 +76,7 @@
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:drawablePadding="2dp" android:drawablePadding="2dp"
android:maxLines="1" android:maxLines="1"
android:textColor="@color/text_color_secondary_dark" android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size" android:textSize="@dimen/default_sub_text_size"
tools:text="Intermediate point "/> tools:text="Intermediate point "/>
@ -87,7 +88,7 @@
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:textColor="@color/text_color_secondary_dark" android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_sub_text_size" android:textSize="@dimen/default_sub_text_size"
tools:text="some description"/> tools:text="some description"/>