2018-06-20 17:01:15 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-06-25 16:52:17 +02:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
2018-06-20 17:01:15 +02:00
|
|
|
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">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/my_location_image"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/my_location_image_height"
|
|
|
|
android:background="@android:color/holo_green_light"
|
|
|
|
app:layout_scrollFlags="scroll"/>
|
|
|
|
|
|
|
|
<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-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"
|
|
|
|
android:paddingRight="@dimen/my_location_text_sides_margin">
|
|
|
|
|
2018-06-27 18:00:40 +02:00
|
|
|
<FrameLayout
|
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"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center"
|
|
|
|
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
|
|
|
|
|
|
|
</FrameLayout>
|
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"
|
|
|
|
android:layout_marginTop="@dimen/content_padding_standard"
|
|
|
|
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>
|
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
2018-06-26 17:45:59 +02:00
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/recycler_view"
|
2018-06-20 17:01:15 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-06-26 17:45:59 +02:00
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingBottom="@dimen/list_view_bottom_padding"
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
|
2018-06-20 17:01:15 +02:00
|
|
|
|
2018-06-25 16:52:17 +02:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|