activity_contact_details.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3    android:layout_width="match_parent"
  4    android:layout_height="match_parent"
  5        android:background="#e5e5e5">
  6
  7<LinearLayout 
  8    android:layout_width="match_parent"
  9    android:layout_height="wrap_content"
 10    android:orientation="vertical">
 11
 12     <TextView
 13        style="@style/sectionHeader"
 14        android:layout_width="wrap_content"
 15        android:layout_height="wrap_content"
 16        android:padding="8dp"
 17        android:text="@string/action_contact_details" />
 18    <RelativeLayout
 19        android:layout_width="wrap_content"
 20        android:layout_height="88dp"
 21        android:padding="8dp">
 22
 23        <QuickContactBadge
 24            android:id="@+id/details_contact_badge"
 25            android:layout_width="72dp"
 26            android:layout_height="72dp"
 27            android:layout_centerVertical="true"
 28            android:scaleType="fitXY"/>
 29
 30        <LinearLayout
 31            android:id="@+id/details_jidbox"
 32            android:layout_width="wrap_content"
 33            android:layout_height="wrap_content"
 34            android:layout_centerVertical="true"
 35            android:layout_toRightOf="@+id/details_contact_badge"
 36            android:orientation="vertical"
 37            android:paddingLeft="8dp" >
 38
 39            <TextView
 40                android:id="@+id/details_contactjid"
 41                android:layout_width="wrap_content"
 42                android:layout_height="wrap_content"
 43                android:paddingLeft="8dp"
 44                android:singleLine="true"
 45                android:textColor="#5b5b5b"
 46                android:textSize="18sp" />
 47
 48            <TextView
 49                android:id="@+id/details_contactstatus"
 50                android:layout_width="wrap_content"
 51                android:layout_height="wrap_content"
 52                android:paddingLeft="16dp"
 53                android:textSize="24sp"
 54                android:textStyle="bold" />
 55        </LinearLayout>
 56          
 57    </RelativeLayout>
 58
 59  
 60   <TextView
 61        style="@style/sectionHeader"
 62        android:layout_width="wrap_content"
 63        android:layout_height="wrap_content"
 64        android:padding="8dp"
 65        android:text="@string/your_account" />
 66    <TextView
 67        android:id="@+id/details_account"
 68        android:layout_width="wrap_content"
 69        android:layout_height="wrap_content"
 70        android:paddingLeft="8dp"
 71        android:textSize="18sp"
 72        android:textColor="#5b5b5b" />
 73   <TextView
 74        style="@style/sectionHeader"
 75        android:layout_width="wrap_content"
 76        android:layout_height="wrap_content"
 77        android:padding="8dp"
 78        android:text="@string/subscriptions" />
 79
 80    <CheckBox
 81        android:id="@+id/details_send_presence"
 82        android:layout_width="wrap_content"
 83        android:layout_height="wrap_content"
 84        android:text="@string/send_presence_updates"
 85        android:textSize="18sp"
 86        android:textColor="#5b5b5b" />
 87
 88        <CheckBox
 89        android:id="@+id/details_receive_presence"
 90        android:layout_width="wrap_content"
 91        android:layout_height="wrap_content"
 92        android:text="@string/receive_presence_updates"
 93        android:textSize="18sp"
 94        android:textColor="#5b5b5b" />
 95        
 96	<TextView 
 97	    android:id="@+id/ask_again"
 98	    android:paddingTop="8dp"
 99	    android:paddingLeft="32dp"
100	    android:layout_width="wrap_content"
101        android:layout_height="wrap_content"
102        android:text="@string/ask_again"
103        android:textColor="#33B5E5"
104        android:textSize="18sp"
105        android:visibility="gone"
106	    />
107 <TextView
108        style="@style/sectionHeader"
109        android:layout_width="wrap_content"
110        android:layout_height="wrap_content"
111        android:padding="8dp"
112        android:text="@string/keys" />
113
114 <LinearLayout
115     android:id="@+id/details_contact_keys"
116     android:layout_width="match_parent"
117     android:layout_height="wrap_content"
118     android:orientation="vertical"
119     android:divider="?android:dividerHorizontal"
120        android:showDividers="middle">
121 </LinearLayout>
122    
123</LinearLayout>
124</ScrollView>