OsmAnd/OsmAnd/res/layout/preference_dialog_and_switch.xml

57 lines
2 KiB
XML
Raw Normal View History

2019-08-30 14:58:36 +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-08-30 14:58:36 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:gravity="center_vertical">
2019-08-30 14:58:36 +02:00
<LinearLayout
android:id="@+id/selectable_list_item"
android:layout_width="match_parent"
2019-08-30 14:58:36 +02:00
android:layout_height="wrap_content"
2019-09-17 15:57:54 +02:00
tools:background="?android:attr/selectableItemBackground">
2019-08-30 14:58:36 +02:00
<ImageView
android:id="@android:id/icon"
android:layout_width="@dimen/standard_icon_size"
android:layout_height="@dimen/standard_icon_size"
android:layout_gravity="center"
android:layout_marginLeft="@dimen/content_padding"
android:layout_marginTop="@dimen/content_padding_small"
android:layout_marginRight="@dimen/content_padding"
android:layout_marginBottom="@dimen/content_padding_small" />
2019-08-30 14:58:36 +02:00
<net.osmand.plus.widgets.TextViewEx
android:id="@android:id/title"
android:layout_width="0dp"
2019-08-30 14:58:36 +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:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_regular" />
2019-08-30 14:58:36 +02:00
<View
android:layout_width="1dp"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/context_menu_padding_margin_tiny"
android:layout_marginBottom="@dimen/context_menu_padding_margin_tiny"
android:background="?attr/divider_color_basic" />
2019-08-30 14:58:36 +02:00
<Switch
android:id="@android:id/switch_widget"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:clickable="true"
android:focusable="true"
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding" />
</LinearLayout>
2019-08-30 14:58:36 +02:00
</LinearLayout>