Re-add sorting to HomeFragment, except heavily improved. The major improvement here is the addition of song sorting, which was a heavily requested feature judging by #16. The setting does not save yet and is not present in the detail fragments, but it is still a major milestone for the new home ui.
67 lines
2.5 KiB
XML
67 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@android:id/background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:theme="@style/Theme.Widget">
|
|
|
|
<ImageView
|
|
android:id="@+id/widget_cover"
|
|
style="@style/Widget.Component.AppWidget.ImageView"
|
|
android:contentDescription="@string/desc_no_cover"
|
|
android:src="@drawable/ic_song" />
|
|
|
|
<LinearLayout style="@style/Widget.Component.AppWidget.Panel">
|
|
|
|
<TextView
|
|
android:id="@+id/widget_song"
|
|
style="@style/Widget.Component.AppWidget.TextView.Primary"
|
|
android:text="@string/def_widget_song" />
|
|
|
|
<TextView
|
|
android:id="@+id/widget_artist"
|
|
style="@style/Widget.Component.AppWidget.TextView.Secondary"
|
|
android:text="@string/def_widget_artist" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/spacing_medium"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageButton
|
|
android:id="@+id/widget_loop"
|
|
style="@style/Widget.Component.AppWidget.Button"
|
|
android:contentDescription="@string/desc_change_loop"
|
|
android:src="@drawable/ic_loop" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/widget_skip_prev"
|
|
style="@style/Widget.Component.AppWidget.Button"
|
|
android:contentDescription="@string/desc_skip_prev"
|
|
android:src="@drawable/ic_skip_prev" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/widget_play_pause"
|
|
style="@style/Widget.Component.AppWidget.Button"
|
|
android:contentDescription="@string/desc_play_pause"
|
|
android:src="@drawable/sel_playing_state" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/widget_skip_next"
|
|
style="@style/Widget.Component.AppWidget.Button"
|
|
android:contentDescription="@string/desc_skip_next"
|
|
android:src="@drawable/ic_skip_next" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/widget_shuffle"
|
|
style="@style/Widget.Component.AppWidget.Button"
|
|
android:contentDescription="@string/desc_shuffle"
|
|
android:src="@drawable/ic_shuffle" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|