activity_contact_details.xml

  1<?xml version="1.0" encoding="utf-8"?>
  2<layout xmlns:android="http://schemas.android.com/apk/res/android"
  3        xmlns:app="http://schemas.android.com/apk/res-auto"
  4        xmlns:tools="http://schemas.android.com/tools">
  5
  6    <ScrollView
  7        android:layout_width="fill_parent"
  8        android:layout_height="fill_parent"
  9        android:background="?attr/color_background_secondary">
 10
 11        <LinearLayout
 12            android:id="@+id/details_main_layout"
 13            android:layout_width="fill_parent"
 14            android:layout_height="wrap_content"
 15            android:orientation="vertical">
 16
 17            <android.support.v7.widget.CardView
 18                android:layout_width="match_parent"
 19                android:layout_height="wrap_content"
 20                android:layout_marginBottom="@dimen/activity_vertical_margin"
 21                android:layout_marginLeft="@dimen/activity_horizontal_margin"
 22                android:layout_marginRight="@dimen/activity_horizontal_margin"
 23                android:layout_marginTop="@dimen/activity_vertical_margin">
 24
 25                <RelativeLayout
 26                    android:layout_width="match_parent"
 27                    android:layout_height="wrap_content"
 28                    android:padding="@dimen/infocard_padding">
 29
 30                    <QuickContactBadge
 31                        android:id="@+id/details_contact_badge"
 32                        android:layout_width="72dp"
 33                        android:layout_height="72dp"
 34                        android:layout_alignParentTop="true"
 35                        android:scaleType="centerCrop"/>
 36
 37                    <LinearLayout
 38                        android:id="@+id/details_jidbox"
 39                        android:layout_width="wrap_content"
 40                        android:layout_height="wrap_content"
 41                        android:layout_marginLeft="16dp"
 42                        android:layout_toRightOf="@+id/details_contact_badge"
 43                        android:orientation="vertical">
 44
 45                        <TextView
 46                            android:id="@+id/details_contactjid"
 47                            android:layout_width="wrap_content"
 48                            android:layout_height="wrap_content"
 49                            android:text="@string/account_settings_example_jabber_id"
 50                            android:textColor="?attr/color_text_primary"
 51                            android:textSize="?attr/TextSizeHeadline"
 52                            android:textStyle="bold"/>
 53
 54                        <com.wefika.flowlayout.FlowLayout
 55                            android:id="@+id/tags"
 56                            android:layout_width="wrap_content"
 57                            android:layout_height="wrap_content"
 58                            android:layout_marginBottom="4dp"
 59                            android:layout_marginLeft="-2dp"
 60                            android:layout_marginTop="4dp"
 61                            android:orientation="horizontal">
 62                        </com.wefika.flowlayout.FlowLayout>
 63
 64                        <TextView
 65                            android:id="@+id/details_lastseen"
 66                            android:layout_width="wrap_content"
 67                            android:layout_height="wrap_content"
 68                            android:layout_marginTop="4dp"
 69                            android:textColor="?attr/color_text_primary"
 70                            android:textSize="?attr/TextSizeBody"/>
 71
 72                        <TextView
 73                            android:id="@+id/status_message"
 74                            android:layout_width="wrap_content"
 75                            android:layout_height="wrap_content"
 76                            android:layout_marginTop="8dp"
 77                            android:textColor="?attr/color_text_secondary"
 78                            android:textSize="?attr/TextSizeBody"
 79                            android:textStyle="italic"/>
 80
 81                        <Button
 82                            android:id="@+id/add_contact_button"
 83                            android:layout_width="wrap_content"
 84                            android:layout_height="wrap_content"
 85                            android:layout_marginTop="8dp"
 86                            android:text="@string/add_contact"/>
 87
 88                        <CheckBox
 89                            android:id="@+id/details_send_presence"
 90                            android:layout_width="wrap_content"
 91                            android:layout_height="wrap_content"
 92                            android:layout_marginTop="8dp"
 93                            android:text="@string/send_presence_updates"
 94                            android:textColor="?attr/color_text_primary"
 95                            android:textSize="?attr/TextSizeBody"/>
 96
 97                        <CheckBox
 98                            android:id="@+id/details_receive_presence"
 99                            android:layout_width="wrap_content"
100                            android:layout_height="wrap_content"
101                            android:text="@string/receive_presence_updates"
102                            android:textColor="?attr/color_text_primary"
103                            android:textSize="?attr/TextSizeBody"/>
104                    </LinearLayout>
105
106                    <TextView
107                        android:id="@+id/details_account"
108                        android:layout_width="wrap_content"
109                        android:layout_height="wrap_content"
110                        android:layout_alignParentRight="true"
111                        android:layout_below="@+id/details_jidbox"
112                        android:layout_marginTop="32dp"
113                        android:text="@string/using_account"
114                        android:textColor="?attr/color_text_secondary"
115                        android:textSize="?attr/TextSizeInfo"/>
116                </RelativeLayout>
117            </android.support.v7.widget.CardView>
118
119            <android.support.v7.widget.CardView
120                android:id="@+id/keys_wrapper"
121                android:layout_width="fill_parent"
122                android:layout_height="wrap_content"
123                android:layout_marginBottom="@dimen/activity_vertical_margin"
124                android:layout_marginLeft="@dimen/activity_horizontal_margin"
125                android:layout_marginRight="@dimen/activity_horizontal_margin"
126                android:layout_marginTop="@dimen/activity_vertical_margin">
127
128                <LinearLayout
129                    android:layout_width="match_parent"
130                    android:layout_height="wrap_content"
131                    android:orientation="vertical"
132                    android:padding="@dimen/infocard_padding">
133
134                    <LinearLayout
135                        android:id="@+id/details_contact_keys"
136                        android:layout_width="fill_parent"
137                        android:layout_height="wrap_content"
138                        android:orientation="vertical">
139                    </LinearLayout>
140
141                    <Button
142                        android:id="@+id/show_inactive_devices"
143                        style="?android:attr/borderlessButtonStyle"
144                        android:layout_width="wrap_content"
145                        android:layout_height="wrap_content"
146                        android:layout_gravity="center_horizontal"
147                        android:layout_marginTop="8dp"
148                        android:text="@string/show_inactive_devices"
149                        android:textColor="@color/accent"/>
150                </LinearLayout>
151            </android.support.v7.widget.CardView>
152        </LinearLayout>
153
154    </ScrollView>
155</layout>