OsmAnd/OsmAnd/res/layout/preference_radio_button.xml

74 lines
2.6 KiB
XML
Raw Normal View History

2019-09-02 17:41:56 +02: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"
2019-09-17 15:57:54 +02:00
xmlns:tools="http://schemas.android.com/tools"
2019-09-02 17:41:56 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-08 15:20:22 +02:00
android:background="?attr/list_background_color"
2019-09-17 15:57:54 +02:00
android:gravity="center_vertical"
android:orientation="vertical">
2019-09-02 17:41:56 +02:00
<LinearLayout
android:id="@+id/selectable_list_item"
android:layout_width="match_parent"
2019-09-02 17:41:56 +02:00
android:layout_height="wrap_content"
2019-09-17 15:57:54 +02:00
android:minHeight="@dimen/bottom_sheet_list_item_height"
tools:background="?android:attr/selectableItemBackground">
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatRadioButton
android:id="@android:id/checkbox"
android:layout_width="wrap_content"
2019-09-02 17:41:56 +02:00
android:layout_height="wrap_content"
2019-09-08 15:20:22 +02:00
android:layout_gravity="center_vertical"
2019-09-17 15:57:54 +02:00
android:layout_marginLeft="@dimen/content_padding_small"
android:layout_marginRight="@dimen/content_padding_small"
android:background="@null"
android:clickable="true"
2020-02-24 15:17:23 +01:00
android:focusable="true"
android:layout_marginStart="@dimen/content_padding_small"
android:layout_marginEnd="@dimen/content_padding_small" />
<LinearLayout
android:layout_width="0dp"
2019-09-02 17:41:56 +02:00
android:layout_height="wrap_content"
2019-09-08 15:20:22 +02:00
android:layout_gravity="center_vertical"
android:layout_weight="1"
2019-09-17 15:57:54 +02:00
android:orientation="vertical"
android:paddingLeft="@dimen/content_padding"
android:paddingTop="@dimen/gpx_small_text_margin"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/content_padding"
android:paddingEnd="@dimen/content_padding"
android:paddingStart="@dimen/content_padding">
<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="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_regular" />
<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/summary"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-09-24 09:19:12 +02:00
android:letterSpacing="@dimen/description_letter_spacing"
2019-09-17 15:57:54 +02:00
android:paddingBottom="@dimen/gpx_small_text_margin"
android:textColor="?android:textColorSecondary"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_regular" />
2019-09-17 15:57:54 +02:00
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_gravity="bottom"
android:background="?attr/divider_color_basic" />
</LinearLayout>
2019-09-02 17:41:56 +02:00
</LinearLayout>
</LinearLayout>