1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:orientation="vertical" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:paddingTop="3dp"> 8 9 <TextView 10 android:layout_width="fill_parent" 11 android:layout_height="wrap_content" 12 android:gravity="center_vertical" 13 android:text="@string/label_me" /> 14 <View 15 android:layout_width="fill_parent" 16 android:layout_height="1dp" 17 android:gravity="center_vertical" 18 android:background="@android:color/holo_blue_light" /> 19 20 <!-- Self information --> 21 <LinearLayout 22 xmlns:android="http://schemas.android.com/apk/res/android" 23 android:layout_width="fill_parent" 24 android:layout_height="?android:attr/listPreferredItemHeight" 25 android:background="?android:attr/activatedBackgroundIndicator" 26 android:padding="3dip"> 27 <ImageView 28 android:id="@+id/icon" 29 android:layout_width="wrap_content" 30 android:layout_height="fill_parent" 31 android:layout_marginRight="2dp" 32 android:src="@drawable/machine" /> 33 <LinearLayout 34 android:orientation="vertical" 35 android:layout_width="0dp" 36 android:layout_weight="1" 37 android:layout_height="fill_parent"> 38 <TextView 39 android:id="@+id/my_name" 40 android:layout_width="fill_parent" 41 android:layout_height="0dp" 42 android:layout_weight="1" 43 android:gravity="center_vertical" /> 44 <TextView 45 android:id="@+id/my_status" 46 android:layout_width="fill_parent" 47 android:layout_height="0dp" 48 android:layout_weight="1" 49 android:singleLine="true" 50 android:ellipsize="marquee" /> 51 </LinearLayout> 52 </LinearLayout> 53 54 <TextView 55 android:layout_width="fill_parent" 56 android:layout_height="wrap_content" 57 android:gravity="center_vertical" 58 android:text="@string/label_peers" /> 59 60 <View 61 android:layout_width="fill_parent" 62 android:layout_height="1dp" 63 android:gravity="center_vertical" 64 android:background="@android:color/holo_blue_light" /> 65 66 <!-- Available peers --> 67 <ListView 68 android:id="@id/android:list" 69 android:layout_width="match_parent" 70 android:layout_height="match_parent" 71 android:layout_weight="1" 72 android:drawSelectorOnTop="false" /> 73 74 <TextView 75 android:id="@id/android:empty" 76 android:layout_width="match_parent" 77 android:layout_gravity="center" 78 android:layout_height="match_parent" 79 android:text="@string/empty_message" /> 80</LinearLayout> 81