OsmAnd/OsmAnd/res/layout/single_choice_switch_item.xml
2016-10-13 19:18:09 +03:00

58 lines
2.1 KiB
XML

<?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"/>
<android.support.v7.widget.AppCompatCheckedTextView
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"
android:textSize="@dimen/default_list_text_size"/>
<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"
android:paddingRight="@dimen/list_content_padding">
<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"
android:textSize="@dimen/default_sub_text_size"/>
<android.support.v7.widget.SwitchCompat
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>