2018-06-20 17:01:15 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-10-16 17:42:43 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-06-25 16:52:17 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-06-20 17:01:15 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-06-26 17:45:59 +02:00
|
|
|
android:layout_height="match_parent">
|
2018-06-20 17:01:15 +02:00
|
|
|
|
2018-06-25 16:52:17 +02:00
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
android:id="@+id/app_bar_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/card_bg_color">
|
|
|
|
|
2018-07-12 15:38:20 +02:00
|
|
|
<FrameLayout
|
2018-08-08 16:53:50 +02:00
|
|
|
android:id="@+id/image_container"
|
2018-06-25 16:52:17 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/my_location_image_height"
|
2018-07-12 15:38:20 +02:00
|
|
|
app:layout_scrollFlags="scroll">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="center"
|
2018-07-12 17:49:11 +02:00
|
|
|
android:src="@drawable/img_my_location_roadbg"/>
|
2018-07-12 15:38:20 +02:00
|
|
|
|
2018-09-03 14:55:08 +02:00
|
|
|
<FrameLayout
|
2018-07-12 15:38:20 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_horizontal"
|
2018-09-03 14:55:08 +02:00
|
|
|
android:layout_marginTop="@dimen/content_padding_standard">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/img_my_location_user"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/user_icon"
|
|
|
|
android:layout_width="@dimen/my_location_user_icon_size"
|
|
|
|
android:layout_height="@dimen/my_location_user_icon_size"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
tools:src="@drawable/img_user_picture"/>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2018-07-12 15:38:20 +02:00
|
|
|
|
|
|
|
</FrameLayout>
|
2018-06-25 16:52:17 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-06-26 14:33:44 +02:00
|
|
|
android:id="@+id/text_container"
|
2018-06-25 16:52:17 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:layout_marginBottom="@dimen/content_padding_standard"
|
2018-06-26 14:33:44 +02:00
|
|
|
android:animateLayoutChanges="true"
|
2018-06-25 16:52:17 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:paddingLeft="@dimen/my_location_text_sides_margin"
|
2018-10-16 17:42:43 +02:00
|
|
|
android:paddingRight="@dimen/my_location_text_sides_margin">
|
2018-06-25 16:52:17 +02:00
|
|
|
|
2018-07-12 15:38:20 +02:00
|
|
|
<LinearLayout
|
2018-06-25 16:52:17 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-06-27 18:00:40 +02:00
|
|
|
android:layout_height="@dimen/action_bar_height">
|
|
|
|
|
2018-06-28 11:25:14 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-06-27 18:00:40 +02:00
|
|
|
android:id="@+id/title"
|
2018-07-12 17:49:11 +02:00
|
|
|
android:layout_width="0dp"
|
2018-06-27 18:00:40 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2018-07-12 15:38:20 +02:00
|
|
|
android:layout_weight="1"
|
2018-07-12 17:49:11 +02:00
|
|
|
android:ellipsize="end"
|
2018-06-27 18:00:40 +02:00
|
|
|
android:gravity="center"
|
2018-07-12 17:49:11 +02:00
|
|
|
android:maxLines="1"
|
2018-06-27 18:00:40 +02:00
|
|
|
android:text="@string/start_location_sharing"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textSize="@dimen/title_text_size"
|
2018-06-28 11:25:14 +02:00
|
|
|
app:typeface="@string/font_roboto_mono_bold"/>
|
2018-06-27 18:00:40 +02:00
|
|
|
|
2018-07-12 15:38:20 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/options"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2018-07-12 17:49:11 +02:00
|
|
|
android:layout_marginLeft="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginStart="@dimen/content_padding_standard"
|
2018-07-12 15:38:20 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:paddingLeft="@dimen/content_padding_half"
|
|
|
|
android:paddingRight="@dimen/content_padding_half"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:src="@drawable/ic_action_other_menu"
|
|
|
|
tools:tint="@color/icon_light"
|
2018-07-12 17:49:11 +02:00
|
|
|
tools:visibility="visible"/>
|
2018-07-12 15:38:20 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2018-06-25 16:52:17 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/description"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
2018-06-26 14:33:44 +02:00
|
|
|
android:text="@string/location_sharing_description"
|
2018-06-25 16:52:17 +02:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/descr_text_size"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/search_box"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding_half"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_half"
|
2018-08-02 13:30:01 +02:00
|
|
|
android:visibility="gone"
|
2018-06-25 16:52:17 +02:00
|
|
|
tools:background="@drawable/btn_round">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/search_button"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/search_box_height"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/search_hint"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@string/my_location_search_hint"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/descr_text_size"/>
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/search_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_half"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_half"
|
|
|
|
tools:src="@drawable/ic_action_search_dark"
|
|
|
|
tools:tint="@color/icon_light"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2018-08-08 16:53:50 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/title_container"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2018-08-08 18:23:37 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/title_row"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/action_bar_height"
|
2018-08-08 18:23:37 +02:00
|
|
|
android:gravity="center_vertical">
|
2018-08-08 16:53:50 +02:00
|
|
|
|
2018-08-08 18:23:37 +02:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-10-12 18:17:38 +02:00
|
|
|
android:id="@+id/status_title"
|
2018-08-08 18:23:37 +02:00
|
|
|
android:layout_width="0dp"
|
2018-08-08 16:53:50 +02:00
|
|
|
android:layout_height="@dimen/action_bar_height"
|
2018-08-08 18:23:37 +02:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:letterSpacing="@dimen/title_letter_spacing"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
android:textColor="@color/app_bar_title_light"
|
|
|
|
android:textSize="@dimen/title_text_size"
|
2018-10-12 18:17:38 +02:00
|
|
|
app:typeface="@string/font_roboto_mono_bold"
|
2018-10-16 17:42:43 +02:00
|
|
|
tools:text="@string/sharing_enabled" />
|
2018-08-08 18:23:37 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/options_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
2018-08-08 18:23:37 +02:00
|
|
|
tools:src="@drawable/ic_action_other_menu"
|
|
|
|
tools:tint="@color/icon_light"
|
2018-10-16 17:42:43 +02:00
|
|
|
tools:visibility="visible" />
|
2018-08-08 18:23:37 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2018-08-08 16:53:50 +02:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/appbar_divider"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_marginLeft="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginStart="@dimen/content_padding_standard"
|
2018-10-16 17:42:43 +02:00
|
|
|
android:background="?attr/card_divider_color" />
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-08-08 16:53:50 +02:00
|
|
|
android:id="@+id/stop_all_sharing_row"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/action_bar_height"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:gravity="center_vertical">
|
2018-08-08 10:44:54 +02:00
|
|
|
|
2018-10-12 18:17:38 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/stop_all_sharing_container"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_width="0dp"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:layout_height="match_parent"
|
2018-08-08 10:44:54 +02:00
|
|
|
android:layout_weight="1"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/stop_all_sharing_title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@string/shared_string_disable"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
app:lastBaselineToBottomHeight="24dp"
|
2018-10-16 17:42:43 +02:00
|
|
|
app:typeface="@string/font_roboto_medium" />
|
2018-10-12 18:17:38 +02:00
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/stop_all_sharing_switcher"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:background="@null"
|
|
|
|
android:clickable="false"
|
2018-10-16 17:42:43 +02:00
|
|
|
android:focusable="false" />
|
2018-10-12 18:17:38 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:id="@+id/appbar_divider2"
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="match_parent"
|
2018-10-16 17:42:43 +02:00
|
|
|
android:background="?attr/card_divider_color" />
|
2018-08-08 10:44:54 +02:00
|
|
|
|
2018-10-12 18:17:38 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/sharing_status_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/sharing_status_icon"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_standard"
|
|
|
|
android:layout_marginTop="@dimen/content_padding_standard"
|
2018-10-17 11:27:57 +02:00
|
|
|
tools:src="@drawable/ic_action_live_now"
|
|
|
|
tools:tint="@color/ctrl_active_light" />
|
2018-10-12 18:17:38 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/shared_string_status"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/list_item_description_text_size"
|
2018-10-16 17:42:43 +02:00
|
|
|
app:typeface="@string/font_roboto_regular" />
|
2018-10-12 18:17:38 +02:00
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2018-10-23 11:21:15 +02:00
|
|
|
android:id="@+id/sharing_status_title"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textSize="@dimen/hint_text_size"
|
|
|
|
app:lastBaselineToBottomHeight="@dimen/content_padding_standard"
|
|
|
|
app:typeface="@string/font_roboto_medium"
|
2018-10-16 17:42:43 +02:00
|
|
|
tools:text="@string/no_gps_connection" />
|
2018-10-12 18:17:38 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-08-08 10:44:54 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
2018-06-25 16:52:17 +02:00
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
2018-08-10 15:28:45 +02:00
|
|
|
<FrameLayout
|
2018-06-20 17:01:15 +02:00
|
|
|
android:layout_width="match_parent"
|
2018-10-12 18:17:38 +02:00
|
|
|
android:layout_height="match_parent"
|
2018-10-16 17:42:43 +02:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
2018-06-20 17:01:15 +02:00
|
|
|
|
2018-08-10 15:28:45 +02:00
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/recycler_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingBottom="@dimen/list_view_bottom_padding"/>
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
|
|
|
android:id="@+id/start_sharing_btn"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="bottom|center_horizontal"
|
2018-08-10 16:07:20 +02:00
|
|
|
android:background="@drawable/extended_fab_bg"
|
2018-09-06 17:01:10 +02:00
|
|
|
android:drawableLeft="@drawable/ic_action_share_location"
|
2018-08-10 15:28:45 +02:00
|
|
|
android:drawablePadding="@dimen/content_padding_half"
|
2018-09-06 17:01:10 +02:00
|
|
|
android:drawableStart="@drawable/ic_action_share_location"
|
2018-08-10 15:28:45 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:paddingLeft="32dp"
|
|
|
|
android:paddingRight="32dp"
|
|
|
|
android:text="@string/share_location"
|
|
|
|
android:textColor="@color/white"
|
2018-08-10 16:11:17 +02:00
|
|
|
android:visibility="gone"
|
2018-10-12 18:17:38 +02:00
|
|
|
app:typeface="@string/font_roboto_medium"
|
2018-10-16 17:42:43 +02:00
|
|
|
tools:visibility="visible" />
|
2018-08-10 15:28:45 +02:00
|
|
|
|
|
|
|
</FrameLayout>
|
2018-10-16 17:42:43 +02:00
|
|
|
|
2018-06-25 16:52:17 +02:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|