Add filtering to library search
Add filtering to the library search bar.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="?attr/colorControlNormal">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M10,18h4v-2h-4v2zM3,6v2h18L21,6L3,6zM6,13h12v-2L6,11v2z"/>
|
||||
</vector>
|
||||
@@ -12,8 +12,8 @@
|
||||
tools:ignore="AlwaysShowAction" />
|
||||
|
||||
<!--
|
||||
This action has to be always shown since android mangles this action when I make it invisible
|
||||
and then visible again.
|
||||
This action has to be always shown since otherwise android mangles this action when I make '
|
||||
it invisible and then visible again.
|
||||
I hate this platform so much.
|
||||
-->
|
||||
<item
|
||||
@@ -38,4 +38,32 @@
|
||||
</group>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/submenu_filtering"
|
||||
android:title="@string/label_filter"
|
||||
android:icon="@drawable/ic_filter"
|
||||
android:visible="false"
|
||||
app:showAsAction="always">
|
||||
<menu>
|
||||
<group android:id="@+id/group_filtering">
|
||||
<item
|
||||
android:id="@+id/option_filter_all"
|
||||
android:title="@string/label_filter_all"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/option_filter_albums"
|
||||
android:title="@string/label_albums"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/option_filter_artists"
|
||||
android:title="@string/label_artists"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/option_filter_genres"
|
||||
android:title="@string/label_genres"
|
||||
app:showAsAction="never" />
|
||||
</group>
|
||||
</menu>
|
||||
</item>
|
||||
</menu>
|
||||
@@ -11,7 +11,10 @@
|
||||
<string name="label_genres">Genres</string>
|
||||
<string name="label_artists">Artists</string>
|
||||
<string name="label_albums">Albums</string>
|
||||
|
||||
<string name="label_search">Search</string>
|
||||
<string name="label_filter">Filter</string>
|
||||
<string name="label_filter_all">All</string>
|
||||
|
||||
<string name="label_sort">Sort</string>
|
||||
<string name="label_sort_none">Default</string>
|
||||
@@ -69,7 +72,9 @@
|
||||
<string name="setting_show_covers_desc">Turn off to save memory usage</string>
|
||||
|
||||
<string name="setting_quality_covers">Ignore MediaStore covers</string>
|
||||
<string name="setting_quality_covers_desc">Results in higher quality album covers, but causes slower loading and higher memory usage</string>
|
||||
<string name="setting_quality_covers_desc">
|
||||
Results in higher quality album covers, but causes slower loading and higher memory usage
|
||||
</string>
|
||||
|
||||
<string name="setting_use_alt_action">Use alternate notification action</string>
|
||||
<string name="setting_use_alt_loop">Prefer repeat mode action</string>
|
||||
|
||||
Reference in New Issue
Block a user