Making great progress with the "view as" option to toggle between list and grid mode. Currently only implemented in the album fragment. To add the functionality to other fragments just extend the AbsMainActivityRecyclerViewLayoutModeFragment class and implement its abstract methods (class name should be changed to something shorter soon). In future the artist and song fragments should extend that class.
This commit is contained in:
parent
280e8a15eb
commit
294f3fc5d0
14 changed files with 282 additions and 179 deletions
|
|
@ -3,12 +3,6 @@
|
|||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:context=".DrawerActivity">
|
||||
|
||||
<item
|
||||
android:id="@+id/action_now_playing"
|
||||
android:icon="@drawable/ic_play_circle_fill_white_24dp"
|
||||
android:title="@string/action_now_playing"
|
||||
app:showAsAction="always" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:icon="@drawable/abc_ic_search_api_mtrl_alpha"
|
||||
|
|
@ -35,30 +29,18 @@
|
|||
android:title="@string/action_view_as">
|
||||
<menu>
|
||||
<group
|
||||
android:id="@+id/gridSizeGroup"
|
||||
android:id="@+id/group_view_as"
|
||||
android:checkableBehavior="single"
|
||||
tools:ignore="HardcodedText">
|
||||
<item
|
||||
android:id="@+id/gridSizeOne"
|
||||
android:title="1" />
|
||||
android:id="@+id/action_layout_mode_list"
|
||||
android:title="@string/list" />
|
||||
<item
|
||||
android:id="@+id/gridSizeTwo"
|
||||
android:title="2" />
|
||||
<item
|
||||
android:id="@+id/gridSizeThree"
|
||||
android:title="3" />
|
||||
<item
|
||||
android:id="@+id/gridSizeFour"
|
||||
android:title="4" />
|
||||
<item
|
||||
android:id="@+id/gridSizeFive"
|
||||
android:title="5" />
|
||||
<item
|
||||
android:id="@+id/gridSizeSix"
|
||||
android:title="6" />
|
||||
android:id="@+id/action_layout_mode_grid"
|
||||
android:title="@string/grid" />
|
||||
</group>
|
||||
<item
|
||||
android:id="@+id/colored_footers"
|
||||
android:id="@+id/action_colored_footers"
|
||||
android:checkable="true"
|
||||
android:title="@string/colored_footers" />
|
||||
</menu>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue