
Fix a plethora of style issues that lead to a worse touch experience. I tried to optimize these solutions so that they didn't reduce the layout density too much. More updates may have to be made in the future.
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/ic_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>
|