2015-10-17 13:51:54 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-11-24 18:45:53 +01:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2016-03-12 14:22:40 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-11-30 18:45:45 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
2015-10-17 13:51:54 +02:00
|
|
|
|
2015-10-18 19:18:50 +02:00
|
|
|
<android.support.v4.widget.SwipeRefreshLayout
|
|
|
|
android:id="@+id/swipe_refresh"
|
2015-10-17 21:31:10 +02:00
|
|
|
android:layout_width="match_parent"
|
2015-11-24 18:45:53 +01:00
|
|
|
android:layout_height="match_parent"
|
2015-11-30 18:45:45 +01:00
|
|
|
android:layout_above="@+id/toolbar_bottom"
|
2015-11-24 18:45:53 +01:00
|
|
|
android:orientation="vertical">
|
2015-10-17 21:31:10 +02:00
|
|
|
|
2015-10-18 19:18:50 +02:00
|
|
|
<android.support.v7.widget.RecyclerView
|
2016-03-13 22:06:32 +01:00
|
|
|
android:id="@+id/recycler"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-11-24 18:45:53 +01:00
|
|
|
android:layout_marginLeft="16dp"
|
|
|
|
android:layout_marginRight="16dp"
|
2015-12-01 18:16:55 +01:00
|
|
|
android:descendantFocusability="blocksDescendants"
|
2015-11-24 18:45:53 +01:00
|
|
|
tools:listitem="@layout/item_chapter">
|
2015-10-18 19:18:50 +02:00
|
|
|
|
|
|
|
</android.support.v7.widget.RecyclerView>
|
|
|
|
|
|
|
|
</android.support.v4.widget.SwipeRefreshLayout>
|
2015-10-17 21:31:10 +02:00
|
|
|
|
2015-11-30 18:45:45 +01:00
|
|
|
|
2015-12-11 13:50:47 +01:00
|
|
|
<RelativeLayout
|
2015-11-30 18:45:45 +01:00
|
|
|
android:id="@+id/toolbar_bottom"
|
2015-11-24 18:45:53 +01:00
|
|
|
android:layout_width="match_parent"
|
2015-11-30 18:45:45 +01:00
|
|
|
android:layout_height="?attr/actionBarSize"
|
2015-11-24 18:45:53 +01:00
|
|
|
android:layout_alignParentBottom="true"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:background="?attr/colorPrimary"
|
2015-11-30 18:45:45 +01:00
|
|
|
android:elevation="4dp"
|
|
|
|
android:gravity="top|start"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingRight="12dp">
|
2015-12-11 13:50:47 +01:00
|
|
|
|
|
|
|
<ImageView
|
2016-03-13 22:06:32 +01:00
|
|
|
android:id="@+id/sort_btn"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:background="?android:selectableItemBackground"
|
|
|
|
android:title="@string/action_sort_up"
|
|
|
|
tools:src="@drawable/ic_expand_less_white_36dp"/>
|
2015-11-30 18:45:45 +01:00
|
|
|
|
2015-12-11 13:50:47 +01:00
|
|
|
<LinearLayout
|
2015-12-01 18:16:55 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2016-03-13 22:06:32 +01:00
|
|
|
android:layout_toEndOf="@+id/sort_btn"
|
|
|
|
android:layout_toLeftOf="@+id/next_unread_btn"
|
|
|
|
android:layout_toRightOf="@+id/sort_btn"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:gravity="center_vertical">
|
2015-12-01 18:16:55 +01:00
|
|
|
|
2015-12-11 13:50:47 +01:00
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="10dp"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:background="@color/md_white_1000"/>
|
2015-12-11 13:50:47 +01:00
|
|
|
|
2016-03-12 14:22:40 +01:00
|
|
|
<android.support.v7.widget.AppCompatCheckBox
|
2016-03-13 22:06:32 +01:00
|
|
|
android:id="@+id/show_unread"
|
2016-03-12 14:22:40 +01:00
|
|
|
style="@style/Theme.Widget.CheckBox.Light"
|
2015-12-01 20:18:19 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-12-01 18:16:55 +01:00
|
|
|
android:layout_height="match_parent"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:checkable="true"
|
|
|
|
android:text="@string/action_show_unread"
|
|
|
|
android:title="@string/action_show_unread"/>
|
|
|
|
|
2016-03-12 14:22:40 +01:00
|
|
|
<android.support.v7.widget.AppCompatCheckBox
|
2016-03-13 22:06:32 +01:00
|
|
|
android:id="@+id/show_downloaded"
|
2016-03-12 14:22:40 +01:00
|
|
|
style="@style/Theme.Widget.CheckBox.Light"
|
2015-12-01 18:16:55 +01:00
|
|
|
android:layout_width="wrap_content"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:checkable="true"
|
|
|
|
android:text="@string/action_show_downloaded"
|
|
|
|
android:title="@string/action_show_downloaded"/>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_margin="10dp"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:background="@color/md_white_1000"/>
|
2015-12-11 13:50:47 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2016-03-12 14:22:40 +01:00
|
|
|
<android.support.v7.widget.AppCompatImageView
|
2016-03-13 22:06:32 +01:00
|
|
|
android:id="@+id/next_unread_btn"
|
2015-12-11 13:50:47 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2016-03-08 00:35:28 +01:00
|
|
|
android:layout_alignParentEnd="true"
|
2016-03-12 14:22:40 +01:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:title="@string/action_next_unread"
|
|
|
|
app:srcCompat="@drawable/ic_play_arrow_white_36dp"/>
|
2015-11-30 18:45:45 +01:00
|
|
|
|
2015-12-11 13:50:47 +01:00
|
|
|
</RelativeLayout>
|
2015-11-24 18:45:53 +01:00
|
|
|
|
|
|
|
</RelativeLayout>
|