2017-09-03 06:04:18 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-11-17 18:23:29 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-09-03 06:04:18 +00:00
|
|
|
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">
|
|
|
|
|
2019-04-28 20:43:54 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/refresh_root_view"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2019-12-16 07:36:04 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/refresh_info_container"
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:layout_toStartOf="@+id/refreshIcon"
|
2019-12-16 07:36:04 +00:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/refresh_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:maxLines="2"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
|
|
|
|
android:textSize="14sp"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/refresh_subtitle_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:gravity="start|center_vertical"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Caption"
|
|
|
|
android:textSize="12sp"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
|
|
|
</LinearLayout>
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/refreshIcon"
|
|
|
|
android:layout_width="24dp"
|
2019-12-16 07:36:04 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignTop="@+id/refresh_info_container"
|
|
|
|
android:layout_alignBottom="@+id/refresh_info_container"
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_marginStart="6dp"
|
2019-12-16 07:36:04 +00:00
|
|
|
android:layout_marginEnd="12dp"
|
2019-04-28 20:43:54 +00:00
|
|
|
app:srcCompat="?attr/ic_refresh"
|
2019-12-16 07:36:04 +00:00
|
|
|
tools:ignore="ContentDescription" />
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1dp"
|
2019-12-16 07:36:04 +00:00
|
|
|
android:layout_below="@+id/refresh_info_container"
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginTop="8dp"
|
2019-12-16 07:36:04 +00:00
|
|
|
android:layout_marginRight="8dp"
|
|
|
|
android:background="?attr/separator_color" />
|
2019-04-28 20:43:54 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-11-15 16:54:40 +00:00
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/swiperefresh"
|
2017-09-03 06:04:18 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-11-15 16:54:40 +00:00
|
|
|
android:layout_below="@+id/refresh_root_view">
|
2020-11-17 18:23:29 +00:00
|
|
|
|
2020-11-15 16:54:40 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/items_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scrollbars="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:listitem="@layout/list_stream_item"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/loading_panel_root"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:gravity="center"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/loading_progress_bar"
|
|
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:minWidth="128dp"
|
|
|
|
android:visibility="gone"
|
2019-12-16 07:36:04 +00:00
|
|
|
tools:visibility="visible" />
|
2019-04-28 20:43:54 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/loading_progress_text"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="∞/∞"
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Title"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
tools:text="1/120"
|
2019-12-16 07:36:04 +00:00
|
|
|
tools:visibility="visible" />
|
2019-04-28 20:43:54 +00:00
|
|
|
</LinearLayout>
|
2017-09-03 06:04:18 +00:00
|
|
|
|
|
|
|
<!--ERROR PANEL-->
|
|
|
|
<include
|
|
|
|
android:id="@+id/error_panel"
|
|
|
|
layout="@layout/error_retry"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:visibility="gone"
|
2019-12-16 07:36:04 +00:00
|
|
|
tools:visibility="visible" />
|
2017-09-03 06:04:18 +00:00
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/empty_state_view"
|
2018-01-17 05:12:03 +00:00
|
|
|
layout="@layout/list_empty_view"
|
2017-09-03 06:04:18 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
android:visibility="gone"
|
2019-12-16 07:36:04 +00:00
|
|
|
tools:visibility="visible" />
|
2017-09-03 06:04:18 +00:00
|
|
|
|
2017-10-25 13:20:57 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="4dp"
|
2019-04-28 20:43:54 +00:00
|
|
|
android:layout_alignParentTop="true"
|
2020-03-25 15:23:47 +00:00
|
|
|
android:background="?attr/toolbar_shadow" />
|
2017-09-03 06:04:18 +00:00
|
|
|
</RelativeLayout>
|