OsmAnd/OsmAnd/res/layout/preference_button.xml

55 lines
1.9 KiB
XML
Raw Normal View History

2019-11-03 14:55:07 +01:00
<?xml version="1.0" encoding="utf-8"?>
<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"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:gravity="center_vertical">
<LinearLayout
android:id="@+id/selectable_list_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="@dimen/bottom_sheet_list_item_height"
tools:background="?android:attr/selectableItemBackground">
2020-01-21 18:08:11 +01:00
<ImageView
android:id="@android:id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
2019-11-03 14:55:07 +01:00
android:layout_gravity="center"
2020-01-21 18:08:11 +01:00
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginRight="@dimen/content_padding"
2020-01-24 17:15:55 +01:00
tools:src="@drawable/ic_action_car_dark"
2020-02-24 15:17:23 +01:00
tools:tint="?colorAccent"
android:layout_marginEnd="@dimen/content_padding"
android:layout_marginStart="@dimen/content_padding" />
2019-11-03 14:55:07 +01:00
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:orientation="vertical"
android:paddingLeft="@dimen/content_padding"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/content_padding"
android:paddingEnd="@dimen/content_padding"
android:paddingStart="@dimen/content_padding">
2019-11-03 14:55:07 +01:00
<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="?colorAccent"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium"
2020-01-21 18:08:11 +01:00
tools:text="Button text" />
2019-11-03 14:55:07 +01:00
</LinearLayout>
</LinearLayout>
</LinearLayout>