2018-08-08 10:44:54 +02: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"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_marginTop="@dimen/content_padding_half"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/shared_chat_card_bg"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/user_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/list_item_height_big"
|
|
|
|
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_marginLeft="@dimen/list_item_icon_margin_left"
|
|
|
|
android:layout_marginRight="@dimen/list_item_icon_margin_left"
|
|
|
|
tools:src="@drawable/img_user_picture" />
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
|
|
|
<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 location" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/duration_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
2018-08-08 18:23:37 +02:00
|
|
|
tools:text="Sharing:" />
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/duration"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
2018-08-08 18:23:37 +02:00
|
|
|
app:typeface="@string/font_roboto_medium"
|
|
|
|
tools:text="1 h" />
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/text_in_area"
|
|
|
|
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:ellipsize="end"
|
|
|
|
android:gravity="center"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="@dimen/content_padding_half"
|
|
|
|
android:paddingRight="@dimen/content_padding_half"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
2018-08-08 16:59:36 +02:00
|
|
|
android:visibility="gone"
|
2018-08-08 10:44:54 +02:00
|
|
|
app:typeface="@string/font_roboto_medium"
|
2018-08-08 16:59:36 +02:00
|
|
|
tools:text="+ 30 min"
|
|
|
|
tools:visibility="visible" />
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="?attr/card_divider_color" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/show_on_map_row"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/list_item_height_big"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
2018-08-08 18:23:37 +02:00
|
|
|
android:paddingRight="@dimen/content_padding_standard">
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/stop_translation_tv"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
2018-08-27 10:38:16 +02:00
|
|
|
android:text="@string/turn_off_location_sharing"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:textColor="?attr/ctrl_active_color"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
2018-08-08 10:44:54 +02:00
|
|
|
app:typeface="@string/font_roboto_medium" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-08-09 15:45:39 +02:00
|
|
|
android:id="@+id/stop_in"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
app:typeface="@string/font_roboto_regular"
|
2018-08-27 10:38:16 +02:00
|
|
|
tools:text="@string/expire_in" />
|
2018-08-08 16:53:50 +02:00
|
|
|
|
2018-08-08 10:44:54 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-08-08 16:53:50 +02:00
|
|
|
android:id="@+id/ending_in_first_part"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_marginLeft="4dp"
|
|
|
|
android:layout_marginRight="4dp"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
app:typeface="@string/font_roboto_mono_bold" />
|
2018-08-08 16:53:50 +02:00
|
|
|
|
2018-08-08 10:44:54 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-08-08 16:53:50 +02:00
|
|
|
android:id="@+id/ending_in_second_part"
|
|
|
|
android:layout_width="wrap_content"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2018-08-09 15:45:39 +02:00
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
app:typeface="@string/font_roboto_regular" />
|
2018-08-08 16:53:50 +02:00
|
|
|
|
2018-08-08 10:44:54 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/switcher"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-08-08 16:53:50 +02:00
|
|
|
</LinearLayout>
|