OsmAnd/OsmAnd/res/layout/single_choice_switch_item.xml

64 lines
2.4 KiB
XML
Raw Normal View History

2016-10-13 18:18:09 +02:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical">
<View
android:background="?attr/dashboard_divider"
android:id="@+id/topDivider"
android:layout_height="1dp"
android:layout_width="wrap_content"/>
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.AppCompatCheckedTextView
2016-10-13 18:18:09 +02:00
android:checkMark="?android:attr/listChoiceIndicatorSingle"
android:gravity="center_vertical"
android:id="@+id/text1"
android:layout_height="?android:attr/listPreferredItemHeightSmall"
android:layout_width="match_parent"
android:paddingLeft="26dp"
android:paddingRight="@dimen/list_content_padding"
android:textColor="?android:attr/textColorPrimary"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_list_text_size"
android:paddingStart="26dp"
android:paddingEnd="@dimen/list_content_padding" />
2016-10-13 18:18:09 +02:00
<LinearLayout
android:gravity="center_vertical"
android:id="@+id/switchLayout"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_width="match_parent"
android:orientation="horizontal"
android:paddingLeft="26dp"
2020-02-24 15:17:23 +01:00
android:paddingRight="@dimen/list_content_padding"
android:paddingEnd="@dimen/list_content_padding"
android:paddingStart="26dp">
2016-10-13 18:18:09 +02:00
<TextView
android:id="@+id/switchText"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_width="0dp"
android:paddingRight="@dimen/list_content_padding"
android:textColor="?android:attr/textColorPrimary"
2020-02-24 15:17:23 +01:00
android:textSize="@dimen/default_sub_text_size"
android:paddingEnd="@dimen/list_content_padding" />
2016-10-13 18:18:09 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.SwitchCompat
2016-10-13 18:18:09 +02:00
android:id="@+id/check"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
</LinearLayout>
<View
android:background="?attr/dashboard_divider"
android:id="@+id/bottomDivider"
android:layout_height="1dp"
android:layout_marginTop="@dimen/list_header_padding"
android:layout_width="wrap_content"/>
</LinearLayout>