Skip to content

Commit

Permalink
Show "Mark all as read" as action
Browse files Browse the repository at this point in the history
Resolves #89
  • Loading branch information
tughi committed Jun 15, 2024
1 parent 4a9c060 commit ce45473
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/action_mark_all_done.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:tint="?colorControlNormal"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#000000"
android:pathData="M18,7l-1.41,-1.41 -6.34,6.34 1.41,1.41L18,7zM22.24,5.59L11.66,16.17 7.48,12l-1.41,1.41L11.66,19l12,-12 -1.42,-1.41zM0.41,13.41L6,19l1.41,-1.41L1.83,12 0.41,13.41z" />
</vector>
7 changes: 5 additions & 2 deletions app/src/main/res/menu/entry_list_fragment.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/show_read_entries"
android:checkable="true"
Expand All @@ -21,5 +22,7 @@
</item>
<item
android:id="@+id/mark_all_read"
android:title="@string/action__mark_all_read" />
android:icon="@drawable/action_mark_all_done"
android:title="@string/action__mark_all_read"
app:showAsAction="ifRoom" />
</menu>

0 comments on commit ce45473

Please sign in to comment.