OsmAnd/OsmAnd-telegram/res/layout/my_location_sharing_chat.xml

170 lines
5.8 KiB
XML
Raw Normal View History

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"
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_big"
android:layout_height="@dimen/list_item_icon_size_big"
2018-08-08 10:44:54 +02:00
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"
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"
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"
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"
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"
2019-02-08 18:12:17 +01:00
android:layout_height="wrap_content"
2019-02-15 18:32:17 +01:00
android:minHeight="60dp"
2018-08-08 10:44:54 +02:00
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"
2019-02-15 18:32:17 +01:00
android:layout_gravity="top"
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"
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"
android:textSize="@dimen/hint_text_size"
2019-02-15 18:32:17 +01:00
app:firstBaselineToTopHeight="24sp"
2018-08-08 10:44:54 +02:00
app:typeface="@string/font_roboto_medium" />
<net.osmand.telegram.ui.views.TextViewEx
android:id="@+id/expires_line"
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"
android:textSize="@dimen/hint_text_size"
app:typeface="@string/font_roboto_regular"
2019-02-15 18:32:17 +01:00
app:lastBaselineToBottomHeight="10sp"
tools:text="@string/expire_at" />
2018-08-08 10:44:54 +02:00
<net.osmand.telegram.ui.views.TextViewEx
android:id="@+id/gps_points_line"
android:layout_width="wrap_content"
2019-01-25 17:04:26 +01:00
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:text="@string/gps_points"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/hint_text_size"
2019-02-15 18:32:17 +01:00
app:lastBaselineToBottomHeight="16sp"
app:typeface="@string/font_roboto_regular" />
2019-01-25 17:04:26 +01:00
2018-08-08 10:44:54 +02:00
</LinearLayout>
<Switch
android:id="@+id/switcher"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
</LinearLayout>