2018-06-21 11:44:43 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-06-27 17:35:29 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2018-06-21 11:44:43 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<include layout="@layout/list_item_divider"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/card_bg_color"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/list_item_height"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="@dimen/list_item_icon_size"
|
|
|
|
android:layout_height="@dimen/list_item_icon_size"
|
|
|
|
android:layout_marginEnd="@dimen/list_item_icon_margin_right"
|
|
|
|
android:layout_marginLeft="@dimen/list_item_icon_margin_left"
|
|
|
|
android:layout_marginRight="@dimen/list_item_icon_margin_right"
|
|
|
|
android:layout_marginStart="@dimen/list_item_icon_margin_left"
|
|
|
|
tools:src="@drawable/ic_launcher_background"/>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2018-06-27 17:35:29 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-06-21 11:44:43 +02:00
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2018-06-27 17:35:29 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2018-06-27 17:36:46 +02:00
|
|
|
android:textSize="@dimen/list_item_title_text_size"
|
2018-06-27 17:35:29 +02:00
|
|
|
app:typeface="@string/font_roboto_regular"
|
2018-06-21 11:44:43 +02:00
|
|
|
tools:text="Share location"/>
|
|
|
|
|
2018-06-27 17:35:29 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-06-21 11:44:43 +02:00
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2018-06-27 17:35:29 +02:00
|
|
|
android:textColor="?attr/android:textColorSecondary"
|
|
|
|
android:textSize="@dimen/list_item_description_text_size"
|
|
|
|
app:typeface="@string/font_roboto_regular"
|
2018-06-21 11:44:43 +02:00
|
|
|
tools:text="Live: 1 • All: 36"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/image_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_small"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_small"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:padding="@dimen/image_button_padding"
|
|
|
|
tools:src="@drawable/ic_overflow_menu_white"
|
|
|
|
tools:tint="@color/icon_light"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/show_on_map_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/list_item_height_min"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingEnd="@dimen/content_padding_standard"
|
|
|
|
android:paddingLeft="@dimen/list_item_content_margin"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
android:paddingStart="@dimen/list_item_content_margin">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/show_on_map"
|
|
|
|
android:textAppearance="?attr/textAppearanceListItemSecondary"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textStyle="bold"/>
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/show_on_map_switch"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/bottom_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginBottom="@dimen/card_divider_bottom_margin"
|
|
|
|
android:layout_marginLeft="@dimen/list_item_content_margin"
|
|
|
|
android:layout_marginStart="@dimen/list_item_content_margin"
|
|
|
|
android:background="?attr/card_divider_color"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/bottom_shadow"
|
|
|
|
layout="@layout/card_bottom_divider"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|