Fixed drawer items.
This commit is contained in:
parent
1daa622890
commit
5aa04f6446
3 changed files with 16 additions and 12 deletions
|
@ -25,12 +25,12 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginLeft="16dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
android:layout_toEndOf="@+id/icon"
|
android:layout_toEndOf="@+id/icon"
|
||||||
android:layout_toLeftOf="@+id/secondary_icon"
|
android:layout_toLeftOf="@+id/secondary_icon"
|
||||||
android:layout_toRightOf="@+id/icon"
|
android:layout_toRightOf="@+id/icon"
|
||||||
android:layout_toStartOf="@+id/secondary_icon"
|
android:layout_toStartOf="@+id/secondary_icon"
|
||||||
android:layout_marginLeft="16dp"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
android:minHeight="60dp"
|
android:minHeight="60dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
@ -43,6 +43,7 @@
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="@style/TextAppearance.OsmandListItemTitle"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textSize="@dimen/default_list_text_size"
|
||||||
tools:text="Some title text"/>
|
tools:text="Some title text"/>
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:textSize="@dimen/default_desc_text_size"
|
android:textSize="@dimen/default_desc_text_size"
|
||||||
tools:text="Some title text"/>
|
tools:text="Some subtitle text"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -77,17 +78,17 @@
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_alignParentRight="true"
|
android:layout_alignParentRight="true"
|
||||||
android:layout_centerVertical="true"
|
android:layout_centerVertical="true"
|
||||||
android:layout_marginRight="16dp"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginRight="16dp"
|
||||||
android:focusable="false"/>
|
android:focusable="false"/>
|
||||||
|
|
||||||
<View
|
<View
|
||||||
android:id="@+id/divider"
|
android:id="@+id/divider"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="1dp"
|
android:layout_height="1dp"
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:layout_alignLeft="@+id/text_wrapper"
|
android:layout_alignLeft="@+id/text_wrapper"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_alignStart="@+id/text_wrapper"
|
android:layout_alignStart="@+id/text_wrapper"
|
||||||
android:background="?attr/dashboard_divider"/>
|
android:background="?attr/dashboard_divider"/>
|
||||||
|
|
||||||
|
|
|
@ -1,21 +1,20 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:osmand="http://schemas.android.com/apk/res-auto"
|
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/list_item_height">
|
android:layout_height="@dimen/list_item_height">
|
||||||
|
|
||||||
<net.osmand.plus.widgets.TextViewEx
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/list_item_height"
|
android:layout_height="wrap_content"
|
||||||
|
android:minHeight="@dimen/list_item_height"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:drawablePadding="24dp"
|
android:drawablePadding="24dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:paddingLeft="16dp"
|
android:paddingLeft="16dp"
|
||||||
android:textColor="?android:textColorPrimary"
|
android:textAppearance="@style/TextAppearance.OsmandListItemTitle"
|
||||||
android:textSize="@dimen/default_list_text_size"
|
android:textStyle="normal"
|
||||||
osmand:typeface="@string/font_roboto_medium"
|
|
||||||
tools:drawableLeft="@drawable/ic_action_search_dark"
|
tools:drawableLeft="@drawable/ic_action_search_dark"
|
||||||
tools:text="@string/layer_poi"/>
|
tools:text="@string/layer_poi"/>
|
||||||
|
|
||||||
|
|
|
@ -364,4 +364,8 @@
|
||||||
<item name="android:windowContentOverlay">@null</item>
|
<item name="android:windowContentOverlay">@null</item>
|
||||||
<item name="android:windowIsTranslucent">true</item>
|
<item name="android:windowIsTranslucent">true</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="TextAppearance.OsmandListItemTitle" parent="TextAppearance.AppCompat.Subhead">
|
||||||
|
<item name="android:textColor">?android:textColorPrimary</item>
|
||||||
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue