1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 ** 4 ** Copyright 2008, The Android Open Source Project 5 ** 6 ** Licensed under the Apache License, Version 2.0 (the "License"); 7 ** you may not use this file except in compliance with the License. 8 ** You may obtain a copy of the License at 9 ** 10 ** http://www.apache.org/licenses/LICENSE-2.0 11 ** 12 ** Unless required by applicable law or agreed to in writing, software 13 ** distributed under the License is distributed on an "AS IS" BASIS, 14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 ** See the License for the specific language governing permissions and 16 ** limitations under the License. 17 */ 18 --> 19 20 <TabWidget xmlns:android="http://schemas.android.com/apk/res/android" 21 android:id="@+id/buttonbar" 22 android:layout_width="match_parent" 23 android:layout_height="wrap_content" > 24 25 <TextView 26 android:id="@+id/artisttab" 27 android:focusable="true" 28 android:background="@drawable/buttonbarbackground" 29 android:drawableTop="@drawable/ic_tab_artists" 30 android:text="@string/browse_menu" 31 android:textAppearance="?android:attr/textAppearanceSmall" 32 android:textColor="@color/tab_indicator_text" 33 android:paddingTop="7dip" 34 android:paddingBottom="2dip" 35 android:gravity="center" 36 android:layout_weight="1" 37 android:layout_marginLeft="-3dip" 38 android:layout_marginRight="-3dip" 39 android:layout_width="match_parent" 40 android:layout_height="64dip" /> 41 42 <TextView 43 android:id="@+id/albumtab" 44 android:focusable="true" 45 android:background="@drawable/buttonbarbackground" 46 android:drawableTop="@drawable/ic_tab_albums" 47 android:text="@string/albums_menu" 48 android:textAppearance="?android:attr/textAppearanceSmall" 49 android:textColor="@color/tab_indicator_text" 50 android:paddingTop="7dip" 51 android:paddingBottom="2dip" 52 android:gravity="center" 53 android:layout_weight="1" 54 android:layout_marginLeft="-3dip" 55 android:layout_marginRight="-3dip" 56 android:layout_width="match_parent" 57 android:layout_height="64dip" /> 58 59 <TextView 60 android:id="@+id/songtab" 61 android:focusable="true" 62 android:background="@drawable/buttonbarbackground" 63 android:drawableTop="@drawable/ic_tab_songs" 64 android:text="@string/tracks_menu" 65 android:textAppearance="?android:attr/textAppearanceSmall" 66 android:textColor="@color/tab_indicator_text" 67 android:paddingTop="7dip" 68 android:paddingBottom="2dip" 69 android:gravity="center" 70 android:layout_weight="1" 71 android:layout_marginLeft="-3dip" 72 android:layout_marginRight="-3dip" 73 android:layout_width="match_parent" 74 android:layout_height="64dip" /> 75 76 <TextView 77 android:id="@+id/playlisttab" 78 android:focusable="true" 79 android:background="@drawable/buttonbarbackground" 80 android:drawableTop="@drawable/ic_tab_playlists" 81 android:text="@string/playlists_menu" 82 android:textAppearance="?android:attr/textAppearanceSmall" 83 android:textColor="@color/tab_indicator_text" 84 android:paddingTop="7dip" 85 android:paddingBottom="2dip" 86 android:gravity="center" 87 android:layout_weight="1" 88 android:layout_marginLeft="-3dip" 89 android:layout_marginRight="-3dip" 90 android:layout_width="match_parent" 91 android:layout_height="64dip" /> 92 93 </TabWidget> 94 95