185 lines
6.6 KiB
XML
185 lines
6.6 KiB
XML
|
<?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="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">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/title_row"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/action_bar_height"
|
||
|
android:gravity="center_vertical">
|
||
|
|
||
|
<net.osmand.telegram.ui.views.TextViewEx
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="@dimen/action_bar_height"
|
||
|
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:text="@string/timeline"
|
||
|
android:textColor="@color/app_bar_title_light"
|
||
|
android:textSize="@dimen/title_text_size"
|
||
|
app:typeface="@string/font_roboto_mono_bold" />
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/options"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:layout_marginLeft="@dimen/content_padding_standard"
|
||
|
android:layout_marginRight="@dimen/content_padding_standard"
|
||
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||
|
android:paddingLeft="@dimen/content_padding_half"
|
||
|
android:paddingRight="@dimen/content_padding_half"
|
||
|
tools:src="@drawable/ic_action_other_menu"
|
||
|
tools:tint="@color/icon_light"
|
||
|
tools:visibility="visible" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
<TextView
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginBottom="@dimen/action_bar_descr_bottom_margin"
|
||
|
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" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/date_row"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/list_header_height"
|
||
|
android:background="@color/screen_bg_light"
|
||
|
android:orientation="horizontal"
|
||
|
android:paddingLeft="@dimen/content_padding_standard"
|
||
|
android:paddingRight="@dimen/content_padding_standard">
|
||
|
|
||
|
<net.osmand.telegram.ui.views.TextViewEx
|
||
|
android:id="@+id/date_start_btn"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="@dimen/dialog_button_height"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:layout_marginEnd="@dimen/content_padding_half"
|
||
|
android:layout_marginRight="@dimen/content_padding_half"
|
||
|
android:layout_weight="1"
|
||
|
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"
|
||
|
android:text="@string/start_date"
|
||
|
android:textColor="?attr/ctrl_active_color"
|
||
|
android:textSize="@dimen/text_button_text_size"
|
||
|
app:typeface="@string/font_roboto_medium" />
|
||
|
|
||
|
<View
|
||
|
android:layout_width="16dp"
|
||
|
android:layout_height="1dp"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:background="@color/app_bar_divider" />
|
||
|
|
||
|
<net.osmand.telegram.ui.views.TextViewEx
|
||
|
android:id="@+id/date_end_btn"
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_height="@dimen/dialog_button_height"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:layout_marginLeft="@dimen/content_padding_half"
|
||
|
android:layout_marginStart="@dimen/content_padding_half"
|
||
|
android:layout_weight="1"
|
||
|
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"
|
||
|
android:text="@string/end_date"
|
||
|
android:textColor="?attr/ctrl_active_color"
|
||
|
android:textSize="@dimen/text_button_text_size"
|
||
|
app:typeface="@string/font_roboto_medium" />
|
||
|
|
||
|
</LinearLayout>
|
||
|
|
||
|
</android.support.design.widget.AppBarLayout>
|
||
|
|
||
|
<FrameLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent">
|
||
|
|
||
|
<net.osmand.telegram.ui.views.TextViewEx
|
||
|
android:id="@+id/last_telegram_update_time"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="top|center_horizontal"
|
||
|
android:gravity="center"
|
||
|
android:paddingTop="@dimen/content_padding_half"
|
||
|
android:textColor="?android:attr/textColorSecondary"
|
||
|
android:textSize="@dimen/list_item_description_text_size"
|
||
|
android:visibility="gone"
|
||
|
app:typeface="@string/font_roboto_regular" />
|
||
|
|
||
|
<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_item_content_margin"
|
||
|
android:scrollbars="vertical" />
|
||
|
|
||
|
</FrameLayout>
|
||
|
|
||
|
</LinearLayout>
|