aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/four_long_widget.xml
diff options
context:
space:
mode:
authorAdrian Ulrich <adrian@blinkenlights.ch>2024-06-23 11:32:06 +0200
committerAdrian Ulrich <adrian@blinkenlights.ch>2024-06-23 11:32:06 +0200
commit38e1761320cd22faa4533d69b0bb3fa9f4f0b20d (patch)
tree0e02630991570a66c8aa43808abf0aaca96ed2d9 /app/src/main/res/layout/four_long_widget.xml
downloadvanilla-dpad-master.tar.gz
vanilla-dpad-master.zip
add note about play storegraftedHEADmaster
Diffstat (limited to 'app/src/main/res/layout/four_long_widget.xml')
-rw-r--r--app/src/main/res/layout/four_long_widget.xml108
1 files changed, 108 insertions, 0 deletions
diff --git a/app/src/main/res/layout/four_long_widget.xml b/app/src/main/res/layout/four_long_widget.xml
new file mode 100644
index 0000000..ea4826c
--- /dev/null
+++ b/app/src/main/res/layout/four_long_widget.xml
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+Copyright (C) 2010 Christopher Eby <kreed@kreed.org>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ android:orientation="horizontal"
+ android:background="#B2191919">
+ <ImageView
+ android:id="@+id/cover"
+ android:src="@drawable/fallback_cover_large"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:adjustViewBounds="true"
+ android:padding="5dip"
+ android:scaleType="fitCenter"
+ android:contentDescription="@string/cover_art" />
+ <LinearLayout
+ android:id="@+id/text_layout"
+ android:layout_width="0px"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:layout_gravity="center"
+ android:orientation="vertical"
+ android:paddingLeft="8dip"
+ android:paddingRight="8dip">
+ <TextView
+ android:id="@+id/title"
+ android:visibility="gone"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textColor="#fff"
+ android:textSize="16sp"
+ android:textStyle="bold"
+ android:singleLine="true"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="10dip"
+ android:ellipsize="none" />
+ <TextView
+ android:id="@+id/artist"
+ android:text="@string/app_name"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textColor="#fff"
+ android:textSize="14sp"
+ android:singleLine="true"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="10dip"
+ android:ellipsize="none" />
+ <TextView
+ android:id="@+id/album"
+ android:text="@string/app_name"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:textColor="#ccc"
+ android:textSize="14sp"
+ android:singleLine="true"
+ android:fadingEdge="horizontal"
+ android:fadingEdgeLength="10dip"
+ android:ellipsize="none" />
+ </LinearLayout>
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent">
+ <ImageButton
+ android:id="@+id/play_pause"
+ android:adjustViewBounds="true"
+ android:layout_width="fill_parent"
+ android:layout_height="0px"
+ android:layout_weight="1"
+ android:src="@drawable/play"
+ android:padding="5dip"
+ android:background="?android:attr/selectableItemBackground"
+ android:scaleType="centerInside"
+ android:contentDescription="@string/play_pause" />
+ <ImageButton
+ android:id="@+id/next"
+ android:adjustViewBounds="true"
+ android:layout_width="fill_parent"
+ android:layout_height="0px"
+ android:layout_weight="1"
+ android:padding="5dip"
+ android:src="@drawable/next"
+ android:background="?android:attr/selectableItemBackground"
+ android:scaleType="centerInside"
+ android:contentDescription="@string/next_song" />
+ </LinearLayout>
+</LinearLayout>