OsmAnd/OsmAnd/res/layout/preference_toolbar_switch.xml

50 lines
1.8 KiB
XML
Raw Normal View History

2019-09-26 12:27:44 +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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar_switch_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/list_background_color"
android:orientation="vertical">
<LinearLayout
android:id="@+id/selectable_item"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/selectableItemBackground"
android:minHeight="@dimen/toolbar_height">
<net.osmand.plus.widgets.TextViewEx
android:id="@+id/switchButtonText"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_marginStart="@dimen/toolbar_height"
android:layout_marginLeft="@dimen/toolbar_height"
android:layout_weight="1"
android:gravity="center_vertical"
android:letterSpacing="@dimen/title_letter_spacing"
android:paddingLeft="@dimen/content_padding"
android:paddingRight="@dimen/content_padding"
android:textColor="?attr/text_color_tab_active"
android:textSize="@dimen/default_list_text_size"
osmand:typeface="@string/font_roboto_medium"
2020-02-24 15:17:23 +01:00
tools:text="@string/shared_string_off"
android:paddingStart="@dimen/content_padding"
android:paddingEnd="@dimen/content_padding" />
2019-09-26 12:27:44 +02:00
2020-03-04 15:12:06 +01:00
<androidx.appcompat.widget.SwitchCompat
2019-09-26 12:27:44 +02:00
android:id="@+id/switchWidget"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@null"
android:clickable="false"
android:focusable="false"
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-26 12:27:44 +02:00
</LinearLayout>
</LinearLayout>