2019-09-10 10:23:30 +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-10 10:23:30 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/list_background_color"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-09-11 17:58:31 +02:00
|
|
|
android:id="@+id/selectable_list_item"
|
2019-09-10 10:23:30 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-01-22 13:20:47 +01:00
|
|
|
android:minHeight="@dimen/setting_list_item_large_height"
|
2019-09-17 15:57:54 +02:00
|
|
|
tools:background="?android:attr/selectableItemBackground">
|
2019-09-10 10:23:30 +02:00
|
|
|
|
2020-05-15 09:58:37 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
2019-09-10 10:23:30 +02:00
|
|
|
android:id="@android:id/icon"
|
|
|
|
android:layout_width="@dimen/standard_icon_size"
|
|
|
|
android:layout_height="@dimen/standard_icon_size"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding"
|
|
|
|
android:layout_marginTop="@dimen/bottom_sheet_icon_margin"
|
|
|
|
android:layout_marginRight="@dimen/content_padding"
|
2020-02-24 15:17:23 +01:00
|
|
|
android:layout_marginBottom="@dimen/bottom_sheet_icon_margin"
|
|
|
|
android:layout_marginStart="@dimen/content_padding"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding" />
|
2019-09-10 10:23:30 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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"
|
2020-02-24 15:17:23 +01:00
|
|
|
android:paddingRight="@dimen/content_padding"
|
|
|
|
android:paddingStart="@dimen/content_padding"
|
|
|
|
android:paddingEnd="@dimen/content_padding">
|
2019-09-10 10:23:30 +02: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:fadingEdge="horizontal"
|
2020-02-03 14:13:33 +01:00
|
|
|
android:letterSpacing="@dimen/text_button_letter_spacing"
|
2020-01-14 17:53:14 +01:00
|
|
|
android:maxLines="2"
|
2019-09-10 10:23:30 +02:00
|
|
|
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-10 10:23:30 +02:00
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="18dp"
|
|
|
|
android:layout_marginBottom="18dp"
|
|
|
|
android:background="?attr/divider_color_basic" />
|
|
|
|
|
2020-03-04 15:12:06 +01:00
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
2019-09-20 14:39:19 +02:00
|
|
|
android:id="@+id/switchWidget"
|
2019-09-10 10:23:30 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="@null"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:paddingLeft="@dimen/content_padding"
|
2020-02-24 15:17:23 +01:00
|
|
|
android:paddingRight="@dimen/content_padding"
|
|
|
|
android:paddingStart="@dimen/content_padding"
|
|
|
|
android:paddingEnd="@dimen/content_padding" />
|
2019-09-10 10:23:30 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|