Fixed fonts and changed naming.

This commit is contained in:
GaidamakUA 2016-04-05 16:51:54 +03:00
parent 9f4ca0a9b0
commit 56b8c62b5b
4 changed files with 12 additions and 7 deletions

View file

@ -4,8 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="64dp"
android:orientation="vertical"
android:clickable="false">
android:clickable="false"
android:orientation="vertical">
<include layout="@layout/card_bottom_divider"/>
@ -26,12 +26,12 @@
android:paddingLeft="16dp"
android:paddingRight="16dp">
<TextView
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textColor="?android:attr/textColorPrimary"
style="@style/TextAppearance.ListItemCategoryTitle"
tools:text="Live updates"/>
<android.support.v7.widget.SwitchCompat

View file

@ -43,7 +43,7 @@
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.OsmandListItemTitle"
android:textAppearance="@style/TextAppearance.ListItemTitle"
android:textSize="@dimen/default_list_text_size"
tools:text="Some title text"/>

View file

@ -13,7 +13,7 @@
android:drawablePadding="24dp"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:textAppearance="@style/TextAppearance.OsmandListItemTitle"
android:textAppearance="@style/TextAppearance.ListItemTitle"
android:textStyle="normal"
tools:drawableLeft="@drawable/ic_action_search_dark"
tools:text="@string/layer_poi"/>

View file

@ -365,7 +365,12 @@
<item name="android:windowIsTranslucent">true</item>
</style>
<style name="TextAppearance.OsmandListItemTitle" parent="TextAppearance.AppCompat.Subhead">
<style name="TextAppearance.ListItemTitle" parent="TextAppearance.AppCompat.Subhead">
<item name="android:textColor">?android:textColorPrimary</item>
</style>
<style name="TextAppearance.ListItemCategoryTitle" parent="TextAppearance.AppCompat.Subhead">
<item name="android:textColor">?android:textColorPrimary</item>
<item name="typeface">@string/font_roboto_medium</item>
</style>
</resources>