2019-12-26 18:17:06 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="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/card_bg_color">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:minHeight="@dimen/list_item_height"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/icon"
|
|
|
|
android:layout_width="@dimen/list_item_icon_size_big"
|
|
|
|
android:layout_height="@dimen/list_item_icon_size_big"
|
|
|
|
android:layout_marginStart="@dimen/list_item_icon_margin_left"
|
|
|
|
android:layout_marginLeft="@dimen/list_item_icon_margin_left"
|
|
|
|
android:layout_marginEnd="@dimen/list_item_icon_margin_right"
|
|
|
|
android:layout_marginRight="@dimen/list_item_icon_margin_right"
|
|
|
|
tools:src="@drawable/img_user_picture" />
|
|
|
|
|
|
|
|
<LinearLayout
|
2019-12-27 18:20:30 +01:00
|
|
|
android:layout_width="0dp"
|
2019-12-26 18:17:06 +01:00
|
|
|
android:layout_height="wrap_content"
|
2019-12-27 18:20:30 +01:00
|
|
|
android:layout_marginEnd="@dimen/content_padding_half"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_half"
|
|
|
|
android:layout_weight="1"
|
2019-12-26 18:17:06 +01:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="@dimen/list_item_title_text_size"
|
|
|
|
app:typeface="@string/font_roboto_regular"
|
|
|
|
tools:text="Share to Share Location" />
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/time"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2019-12-27 18:20:30 +01:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2019-12-26 18:17:06 +01:00
|
|
|
android:textSize="@dimen/list_item_description_text_size"
|
|
|
|
app:typeface="@string/font_roboto_regular"
|
|
|
|
tools:text="for 1 hour" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2019-12-27 18:20:30 +01:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/start"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/dialog_button_height"
|
|
|
|
android:layout_marginEnd="@dimen/image_button_padding"
|
|
|
|
android:layout_marginRight="@dimen/image_button_padding"
|
|
|
|
android:background="?attr/secondary_btn_bg"
|
|
|
|
android:gravity="center"
|
|
|
|
android:paddingLeft="@dimen/image_button_padding"
|
|
|
|
android:paddingRight="@dimen/image_button_padding"
|
|
|
|
android:text="@string/shared_string_start"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textSize="@dimen/text_button_text_size"
|
|
|
|
app:typeface="@string/font_roboto_medium"
|
|
|
|
tools:text="Start" />
|
|
|
|
|
2019-12-26 18:17:06 +01:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|