-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a 1x3/1x4 widget that displays the cover and controls Also requires another widget type that just displays controls to accomodate landscape devices. Resolves #420.
- Loading branch information
1 parent
1954988
commit 881df0f
Showing
19 changed files
with
446 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/src/main/res/drawable-v31/ui_widget_rectangle_button_bg.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid android:color="?attr/colorSurface" /> | ||
<corners android:radius="@android:dimen/system_app_widget_background_radius" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="oval"> | ||
<solid android:color="?attr/colorSurface" /> | ||
</shape> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<solid android:color="?attr/colorSurface" /> | ||
<corners android:radius="@dimen/spacing_mid_medium" /> | ||
</shape> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@android:id/background" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:baselineAligned="false" | ||
android:orientation="horizontal" | ||
android:theme="@style/Theme.Auxio.Widget"> | ||
|
||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_skip_prev" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_skip_prev" | ||
android:src="@drawable/ic_skip_prev_24" /> | ||
</FrameLayout> | ||
|
||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_play_pause" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget.PlayPause" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:contentDescription="@string/desc_play_pause" | ||
android:src="@drawable/ic_play_24" /> | ||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_skip_next" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_skip_next" | ||
android:src="@drawable/ic_skip_next_24" /> | ||
|
||
</FrameLayout> | ||
|
||
</LinearLayout> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@android:id/background" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:baselineAligned="false" | ||
android:orientation="horizontal" | ||
android:theme="@style/Theme.Auxio.Widget"> | ||
|
||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
<android.widget.ImageButton | ||
android:id="@+id/widget_repeat" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_change_repeat" | ||
android:src="@drawable/ic_repeat_off_24" /> | ||
</FrameLayout> | ||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_skip_prev" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_skip_prev" | ||
android:src="@drawable/ic_skip_prev_24" /> | ||
</FrameLayout> | ||
|
||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_play_pause" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget.PlayPause" | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:contentDescription="@string/desc_play_pause" | ||
android:src="@drawable/ic_play_24" /> | ||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_skip_next" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_skip_next" | ||
android:src="@drawable/ic_skip_next_24" /> | ||
|
||
</FrameLayout> | ||
|
||
<FrameLayout | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:background="@drawable/ui_widget_rectangle_button_bg"> | ||
|
||
<android.widget.ImageButton | ||
android:id="@+id/widget_shuffle" | ||
style="@style/Widget.Auxio.MaterialButton.AppWidget" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:contentDescription="@string/desc_shuffle" | ||
android:src="@drawable/ic_shuffle_off_24" /> | ||
</FrameLayout> | ||
|
||
</LinearLayout> | ||
|
||
|
Oops, something went wrong.