70 lines
No EOL
2.5 KiB
XML
70 lines
No EOL
2.5 KiB
XML
<?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:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/list_background_color"
|
|
android:gravity="center_vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/selectable_list_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="@dimen/bottom_sheet_list_item_height"
|
|
tools:background="?android:attr/selectableItemBackground">
|
|
|
|
<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/bottom_sheet_icon_margin"
|
|
android:layout_marginRight="@dimen/content_padding"
|
|
android:layout_marginBottom="@dimen/bottom_sheet_icon_margin" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="@dimen/content_padding"
|
|
android:paddingRight="@dimen/content_padding">
|
|
|
|
<net.osmand.plus.widgets.TextViewEx
|
|
android:id="@android:id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
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"
|
|
android:letterSpacing="@dimen/description_letter_spacing"
|
|
android:maxLines="4"
|
|
android:textColor="?android:textColorSecondary"
|
|
android:textSize="@dimen/default_desc_text_size"
|
|
osmand:typeface="@string/font_roboto_regular" />
|
|
|
|
</LinearLayout>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
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"
|
|
android:paddingRight="@dimen/content_padding" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout> |