OsmAnd/OsmAnd/res/layout/preference_button.xml

67 lines
2.3 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-05-15 09:58:37 +02:00
<androidx.appcompat.widget.AppCompatImageView
2020-01-21 18:08:11 +01:00
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"
2020-05-25 12:11:57 +02:00
android:layout_height="match_parent"
2019-11-03 14:55:07 +01:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
2020-05-25 12:11:57 +02:00
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginStart="@dimen/content_padding"
android:orientation="vertical">
<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/title"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:layout_gravity="center_vertical"
android:gravity="center_vertical"
android:ellipsize="marquee"
android:singleLine="true"
android:textColor="?colorAccent"
android:paddingStart="0dp"
android:paddingLeft="0dp"
android:paddingEnd="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium"
tools:text="Button text" />
<View
android:id="@+id/divider"
2019-11-03 14:55:07 +01:00
android:layout_width="match_parent"
2020-05-25 12:11:57 +02:00
android:layout_height="1dp"
android:visibility="gone"
android:background="?attr/dashboard_divider" />
2019-11-03 14:55:07 +01:00
</LinearLayout>
</LinearLayout>
</LinearLayout>