2019-01-18 13:51:39 +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"
|
2019-07-13 15:34:25 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
2019-02-01 16:13:21 +01:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-02-01 16:13:21 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
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"
|
2019-07-13 15:34:25 +02:00
|
|
|
android:paddingTop="@dimen/content_padding_standard"
|
2019-02-01 16:13:21 +01:00
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
2019-07-13 15:34:25 +02:00
|
|
|
android:paddingBottom="12dp"
|
2019-02-01 16:13:21 +01:00
|
|
|
android:text="@string/timeline"
|
|
|
|
android:textColor="@color/app_bar_title_light"
|
|
|
|
android:textSize="@dimen/title_text_size"
|
|
|
|
app:typeface="@string/font_roboto_mono_bold" />
|
2019-01-18 13:51:39 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard"
|
|
|
|
android:text="@string/timeline_description"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:textSize="@dimen/descr_text_size" />
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/monitoring_container"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="@dimen/action_bar_height"
|
|
|
|
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/monitoring_title"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center_vertical|start"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@string/monitoring_is_enabled"
|
|
|
|
android:textColor="@color/ctrl_active_light"
|
|
|
|
android:textSize="@dimen/descr_text_size"
|
|
|
|
app:typeface="@string/font_roboto_medium" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/monitoring_switcher"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:background="@null"
|
|
|
|
android:clickable="false"
|
|
|
|
android:focusable="false" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:background="@color/app_bar_divider" />
|
|
|
|
|
2019-01-30 18:14:05 +01:00
|
|
|
<FrameLayout
|
2019-01-18 13:51:39 +01:00
|
|
|
android:id="@+id/date_row"
|
|
|
|
android:layout_width="match_parent"
|
2019-02-01 16:13:21 +01:00
|
|
|
android:layout_height="@dimen/timeline_time_buttons_height"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:background="@color/screen_bg_light"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingLeft="@dimen/content_padding_standard"
|
|
|
|
android:paddingRight="@dimen/content_padding_standard">
|
|
|
|
|
2019-07-13 15:34:25 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/date_btn_previous"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/dialog_button_height"
|
|
|
|
android:layout_gravity="start|center_vertical"
|
|
|
|
android:background="@drawable/btn_round_border"
|
|
|
|
android:paddingStart="@dimen/content_padding_half"
|
|
|
|
android:paddingLeft="@dimen/content_padding_half"
|
|
|
|
android:paddingEnd="@dimen/content_padding_big"
|
|
|
|
android:paddingRight="@dimen/content_padding_big"
|
|
|
|
android:src="@drawable/ic_arrow_back"
|
|
|
|
tools:tint="?attr/ctrl_active_color" />
|
|
|
|
|
2019-01-18 13:51:39 +01:00
|
|
|
<net.osmand.telegram.ui.views.TextViewEx
|
2019-01-30 18:14:05 +01:00
|
|
|
android:id="@+id/date_btn"
|
|
|
|
android:layout_width="wrap_content"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_height="@dimen/dialog_button_height"
|
2019-01-30 18:14:05 +01:00
|
|
|
android:layout_gravity="center"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_marginEnd="@dimen/content_padding_half"
|
|
|
|
android:layout_marginRight="@dimen/content_padding_half"
|
|
|
|
android:background="@drawable/btn_round_border"
|
|
|
|
android:drawablePadding="@dimen/content_padding_half"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingLeft="@dimen/image_button_padding"
|
|
|
|
android:paddingRight="@dimen/image_button_padding"
|
2019-01-30 18:14:05 +01:00
|
|
|
android:text="@string/shared_string_date"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:textColor="?attr/ctrl_active_color"
|
|
|
|
android:textSize="@dimen/text_button_text_size"
|
|
|
|
app:typeface="@string/font_roboto_medium" />
|
|
|
|
|
2019-07-13 15:34:25 +02:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/date_btn_next"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/dialog_button_height"
|
|
|
|
android:layout_gravity="end|center_vertical"
|
|
|
|
android:background="@drawable/btn_round_border"
|
|
|
|
android:paddingStart="@dimen/content_padding_big"
|
|
|
|
android:paddingLeft="@dimen/content_padding_big"
|
|
|
|
android:paddingEnd="@dimen/content_padding_half"
|
|
|
|
android:paddingRight="@dimen/content_padding_half"
|
|
|
|
android:src="@drawable/ic_arrow_forward"
|
|
|
|
tools:tint="?attr/ctrl_active_color" />
|
|
|
|
|
2019-01-30 18:14:05 +01:00
|
|
|
</FrameLayout>
|
2019-01-18 13:51:39 +01:00
|
|
|
|
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
2019-02-05 16:26:42 +01:00
|
|
|
<android.support.v4.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/swipe_refresh"
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
2019-07-13 15:34:25 +02:00
|
|
|
<FrameLayout
|
2019-01-18 13:51:39 +01:00
|
|
|
android:layout_width="match_parent"
|
2019-07-13 15:34:25 +02:00
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<net.osmand.telegram.ui.views.EmptyStateRecyclerView
|
|
|
|
android:id="@+id/recycler_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:paddingBottom="@dimen/list_item_content_margin"
|
|
|
|
android:scrollbars="vertical" />
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/empty_view"
|
|
|
|
layout="@layout/empty_state_timeline" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
2019-01-18 13:51:39 +01:00
|
|
|
|
2019-02-05 16:26:42 +01:00
|
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|
2019-01-18 13:51:39 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|