OSDN Git Service

add new resource for notouch to avoid crash on x86 platforms
[android-x86/packages-apps-Music.git] / res / layout-notouch / music_library.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright (C) 2007 The Android Open Source Project
3
4      Licensed under the Apache License, Version 2.0 (the "License");
5      you may not use this file except in compliance with the License.
6      You may obtain a copy of the License at
7
8           http://www.apache.org/licenses/LICENSE-2.0
9
10      Unless required by applicable law or agreed to in writing, software
11      distributed under the License is distributed on an "AS IS" BASIS,
12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13      See the License for the specific language governing permissions and
14      limitations under the License.
15 -->
16
17 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18     android:layout_width="fill_parent"
19     android:layout_height="fill_parent"
20     android:orientation="vertical">
21
22     <LinearLayout
23         android:layout_width="fill_parent"
24         android:layout_height="0dip"
25         android:layout_weight="1"
26         android:paddingTop="35dip"
27         android:paddingLeft="18dip"
28         android:paddingRight="18dip"
29         android:orientation="horizontal"
30         >
31
32         <LinearLayout
33             android:layout_weight="1"
34             android:layout_width="0dip"
35             android:layout_height="fill_parent"
36             android:orientation="vertical"
37             android:layout_marginRight="18dip"
38             >
39
40             <Button
41                 android:id="@+id/browse_button"
42                 android:layout_width="wrap_content"
43                 android:layout_height="wrap_content"
44                 android:background="@drawable/main_menu_button"
45                 android:drawableTop="@drawable/ic_mp_screen_artists"
46                 android:text="@string/browse_menu"
47                 android:ellipsize="marquee"
48                 android:textAppearance="?android:attr/textAppearanceMedium"
49                 android:textColor="?android:attr/textColorPrimaryDisableOnly"
50                 android:singleLine="true"
51                 android:layout_marginBottom="35dip"
52             />
53
54             <Button
55                 android:id="@+id/tracks_button"
56                 android:layout_width="wrap_content"
57                 android:layout_height="wrap_content"
58                 android:background="@drawable/main_menu_button"
59                 android:drawableTop="@drawable/ic_mp_screen_tracks"
60                 android:text="@string/tracks_menu"
61                 android:ellipsize="marquee"
62                 android:textAppearance="?android:attr/textAppearanceMedium"
63                 android:textColor="?android:attr/textColorPrimaryDisableOnly"
64                 android:singleLine="true"
65                 android:layout_marginBottom="35dip"
66             />
67
68         </LinearLayout>
69
70
71         <LinearLayout
72             android:layout_weight="1"
73             android:layout_width="0dip"
74             android:layout_height="fill_parent"
75             android:orientation="vertical"
76             >
77
78             <Button
79                 android:id="@+id/albums_button"
80                 android:layout_width="wrap_content"
81                 android:layout_height="wrap_content"
82                 android:background="@drawable/main_menu_button"
83                 android:drawableTop="@drawable/ic_mp_screen_albums"
84                 android:text="@string/albums_menu"
85                 android:ellipsize="marquee"
86                 android:textAppearance="?android:attr/textAppearanceMedium"
87                 android:textColor="?android:attr/textColorPrimaryDisableOnly"
88                 android:singleLine="true"
89                 android:layout_marginBottom="35dip"
90             />
91
92             <Button
93                 android:id="@+id/playlists_button"
94                 android:layout_width="wrap_content"
95                 android:layout_height="wrap_content"
96                 android:background="@drawable/main_menu_button"
97                 android:drawableTop="@drawable/ic_mp_screen_playlists"
98                 android:text="@string/playlists_menu"
99                 android:ellipsize="marquee"
100                 android:textAppearance="?android:attr/textAppearanceMedium"
101                 android:textColor="?android:attr/textColorPrimaryDisableOnly"
102                 android:singleLine="true"
103                 android:layout_marginBottom="35dip"
104             />
105
106         </LinearLayout>
107
108     </LinearLayout>
109
110     <LinearLayout
111         android:id="@+id/nowplaying"
112         android:layout_width="fill_parent"
113         android:layout_height="64dip"
114         android:focusable="true"
115         android:visibility="invisible"
116         android:orientation="vertical">
117
118         <ImageView
119             android:layout_width="fill_parent"
120             android:layout_height="wrap_content"
121             android:background="@android:drawable/divider_horizontal_dark" />
122
123         <LinearLayout
124             android:layout_width="fill_parent"
125             android:layout_height="fill_parent"
126             android:orientation="horizontal"
127             android:layout_marginLeft="18dip"
128             android:layout_marginRight="18dip">
129
130             <LinearLayout
131                 android:layout_width="0dip"
132                 android:layout_weight="1"
133                 android:layout_height="wrap_content"
134                 android:layout_gravity="center_vertical"
135                 android:orientation="vertical">
136
137                 <TextView
138                     android:id="@+id/title"
139                     android:textAppearance="?android:attr/textAppearanceMedium"
140                     android:singleLine="true"
141                     android:ellipsize="end"
142                     android:layout_width="fill_parent"
143                     android:layout_height="wrap_content"
144                 />
145                 <TextView
146                     android:id="@+id/artist"
147                     android:textAppearance="?android:attr/textAppearanceSmall"
148                     android:singleLine="true"
149                     android:ellipsize="end"
150                     android:layout_width="fill_parent"
151                     android:layout_height="wrap_content"
152                 />
153             </LinearLayout>
154
155             <ImageView android:id="@+id/icon"
156                 android:layout_width="wrap_content"
157                 android:layout_height="wrap_content"
158                 android:layout_gravity="center_vertical"
159                 android:background="@drawable/indicator_ic_mp_playing_large"
160             />
161
162         </LinearLayout>
163     </LinearLayout>
164 </LinearLayout>
165