1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 /** 4 * Copyright (C) 2009 Google Inc. 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 <!-- The title area at the top of the screen --> 21 22 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 23 android:id="@+id/title_area" 24 android:orientation="horizontal" 25 android:background="@drawable/title_bar"> 26 27 <ImageView android:id="@+id/provider_icon" 28 android:layout_width="48dip" 29 android:layout_height="48dip" 30 android:layout_margin="5dip" 31 android:layout_gravity="center_vertical" /> 32 33 <LinearLayout 34 android:layout_width="0dip" 35 android:layout_weight="1" 36 android:layout_height="wrap_content" 37 android:orientation="vertical" 38 android:background="@drawable/title_bar"> 39 40 <TextView 41 android:id="@+id/user_id" 42 android:layout_width="match_parent" 43 android:layout_height="wrap_content" 44 android:textAppearance="?android:attr/textAppearanceMedium" 45 android:textStyle="bold" 46 android:singleLine="true" 47 android:ellipsize="end" 48 android:gravity="center_vertical" 49 android:layout_marginTop="5dip"/> 50 51 <TextView 52 android:id="@+id/provider_id" 53 android:layout_width="match_parent" 54 android:layout_height="wrap_content" 55 android:textAppearance="?android:attr/textAppearanceSmall" 56 android:singleLine="true" 57 android:ellipsize="end" 58 android:layout_gravity="bottom" 59 android:layout_marginBottom="5dip"/> 60 61 </LinearLayout> 62 63 </LinearLayout> 64