Moved the 'Remove Watched' button to the three dot menu button.

This commit is contained in:
Grady Clark 2020-03-05 07:49:04 -06:00 committed by Stypox
parent 559fe4feb1
commit 670483997f
3 changed files with 47 additions and 45 deletions

View file

@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -30,6 +32,7 @@
android:drawableStart="?attr/audio"/>
</LinearLayout>
<View android:id="@+id/anchorLeft"
android:layout_width="1dp"
android:layout_height="match_parent"
@ -56,7 +59,7 @@
android:textColor="?attr/colorAccent"/>
</LinearLayout>
<View android:id="@+id/anchorMiddle"
<View android:id="@+id/anchorRight"
android:layout_width="1dp"
android:layout_height="match_parent"
android:clickable="false"
@ -84,32 +87,4 @@
android:drawableLeft="?attr/popup"
android:drawableStart="?attr/popup"/>
</LinearLayout>
<View android:id="@+id/anchorRight"
android:layout_width="1dp"
android:layout_height="match_parent"
android:clickable="false"
android:layout_marginBottom="@dimen/playlist_ctrl_seperator_margin"
android:layout_marginTop="@dimen/playlist_ctrl_seperator_margin"
android:background="?attr/colorAccent"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.2"
android:gravity="center"
android:clickable="true"
android:focusable="true"
android:background="?attr/selectableItemBackground"
android:id="@+id/playlist_ctrl_remove_watched_button">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="15px"
android:gravity="center_vertical"
android:text="@string/remove_watched"
android:textColor="?attr/colorAccent"
android:textSize="@dimen/channel_rss_title_size" />
</LinearLayout>
</LinearLayout>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<menu 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">
<item
android:id="@+id/menu_item_removeWatched"
android:title="@string/remove_watched"
app:showAsAction="never"/>
</menu>