aboutsummaryrefslogtreecommitdiff
path: root/res/layout/appwidget4x2.xml
blob: 8409bbbfc8254ab79f9710ddb0dde42ffdf18162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:minWidth="250dp"
    android:minHeight="110dp"
    android:background="@drawable/appwidget_bg"
    android:orientation="horizontal"
	android:id="@+id/widget_root">

    <ImageView
        android:id="@+id/appwidget_coverart"
        android:layout_width="120dp"
        android:layout_height="120dp"
        android:layout_gravity="center_vertical"
        android:clickable="true"
        android:focusable="true"
        android:src="@drawable/appwidget_art_default" />

    <LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">

        <LinearLayout
            android:id="@+id/appwidget_top"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:clickable="true"
            android:focusable="true"
            android:orientation="vertical"
            android:paddingTop="4dip"
            android:paddingBottom="4dip"
			android:background="@drawable/media_button">

            <TextView
                android:id="@+id/title"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:ellipsize="none"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="20dip"
                android:minHeight="16sp"
                android:paddingLeft="4dip"
                android:paddingRight="4dip"
                android:paddingTop="4dip"
				android:paddingBottom="2dip"
                android:singleLine="true"
                android:gravity="center_horizontal"
                android:text="Title"
                android:textColor="@color/appwidget_text"
                android:textSize="16sp"
                android:textStyle="bold" />

            <TextView
                android:id="@+id/artist"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:ellipsize="none"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="10dip"
                android:minHeight="12sp"
                android:paddingLeft="4dip"
                android:paddingRight="4dip"
				android:paddingBottom="2dip"
                android:singleLine="true"
                android:gravity="center_horizontal"
                android:text="Artist"
                android:textColor="@color/appwidget_text"
                android:textSize="12sp" />
            
          <TextView
                android:id="@+id/album"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:ellipsize="none"
                android:fadingEdge="horizontal"
                android:fadingEdgeLength="10dip"
                android:minHeight="12sp"
                android:paddingBottom="2dip"
                android:paddingLeft="4dip"
                android:paddingRight="4dip"
                android:singleLine="true"
                android:gravity="center_horizontal"
                android:text="Album"
                android:textColor="@color/appwidget_text"
                android:textSize="12sp" />
          
        </LinearLayout>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:layout_gravity="bottom"
            android:gravity="bottom"
            android:paddingBottom="4dip"
            android:paddingTop="4dip" >"

            <ImageButton
                android:id="@+id/control_previous"
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:scaleType="center"
                android:background="@drawable/media_button"          
                android:src="@drawable/ic_appwidget_music_previous" />

            <ImageButton
                android:id="@+id/control_play"
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:scaleType="center"              
                android:src="@drawable/ic_appwidget_music_play"
				android:background="@drawable/media_button" />

            <ImageButton
                android:id="@+id/control_next"
                android:layout_width="0dip"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:scaleType="center"
                android:src="@drawable/ic_appwidget_music_next"
				android:background="@drawable/media_button" />
        </LinearLayout>
    </LinearLayout>

</LinearLayout>