diff options
Diffstat (limited to 'src/main/res/layout/activity_contact_details.xml')
-rw-r--r-- | src/main/res/layout/activity_contact_details.xml | 108 |
1 files changed, 76 insertions, 32 deletions
diff --git a/src/main/res/layout/activity_contact_details.xml b/src/main/res/layout/activity_contact_details.xml index 0facc6515..599ec2c7d 100644 --- a/src/main/res/layout/activity_contact_details.xml +++ b/src/main/res/layout/activity_contact_details.xml @@ -22,18 +22,28 @@ <QuickContactBadge android:id="@+id/details_contact_badge" - android:layout_width="72dp" - android:layout_height="72dp" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + android:maxHeight="384dp" + android:maxWidth="384dp" + android:scaleType="centerCrop" android:layout_alignParentTop="true" - android:scaleType="centerCrop" /> + android:layout_centerHorizontal="true" + android:background="@drawable/message_border" + android:padding="1dp" + android:adjustViewBounds="true"/> <LinearLayout android:id="@+id/details_jidbox" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="16dp" - android:layout_toRightOf="@+id/details_contact_badge" - android:orientation="vertical" > + android:orientation="vertical" + android:layout_below="@+id/details_contact_badge" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginTop="16dp" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true"> <TextView android:id="@+id/details_contactjid" @@ -42,7 +52,10 @@ android:text="@string/account_settings_example_jabber_id" android:textColor="@color/black87" android:textSize="?attr/TextSizeHeadline" - android:textStyle="bold" /> + android:textStyle="bold" + android:layout_gravity="center_horizontal" + android:textIsSelectable="true" + android:visibility="gone" /> <LinearLayout android:id="@+id/tags" @@ -50,41 +63,28 @@ android:layout_height="wrap_content" android:layout_marginTop="4dp" android:layout_marginBottom="4dp" - android:orientation="horizontal"> + android:orientation="horizontal" + android:layout_gravity="center_horizontal"> </LinearLayout> <TextView - android:layout_marginTop="8dp" - android:id="@+id/status_message" + android:id="@+id/details_lastseen" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="@color/black54" - android:textStyle="italic" - android:textSize="?attr/TextSizeBody" /> + android:textSize="?attr/TextSizeBody" + android:layout_gravity="center_horizontal" /> - <Button - android:id="@+id/add_contact_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + <TextView android:layout_marginTop="8dp" - android:text="@string/add_contact"/> - - <CheckBox - android:id="@+id/details_send_presence" + android:id="@+id/status_message" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginTop="8dp" - android:text="@string/send_presence_updates" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeBody" /> + android:textColor="@color/black54" + android:textStyle="italic" + android:textSize="?attr/TextSizeBody" + android:layout_gravity="center_horizontal" /> - <CheckBox - android:id="@+id/details_receive_presence" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/receive_presence_updates" - android:textColor="@color/black87" - android:textSize="?attr/TextSizeBody" /> </LinearLayout> <TextView @@ -96,7 +96,51 @@ android:layout_marginTop="32dp" android:text="@string/using_account" android:textColor="@color/black54" - android:textSize="?attr/TextSizeInfo" /> + android:textSize="?attr/TextSizeInfo" + android:visibility="gone" /> + </RelativeLayout> + + <RelativeLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/activity_horizontal_margin" + android:layout_marginRight="@dimen/activity_horizontal_margin" + android:layout_marginTop="@dimen/activity_vertical_margin" + android:layout_marginBottom="@dimen/activity_vertical_margin" + android:background="@drawable/infocard_border" + android:padding="@dimen/infocard_padding" > + + <Button + android:id="@+id/add_contact_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/add_contact" + android:layout_gravity="center_horizontal" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" /> + + <CheckBox + android:id="@+id/details_send_presence" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/send_presence_updates" + android:textColor="@color/black87" + android:textSize="?attr/TextSizeBody" + android:layout_below="@+id/add_contact_button" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <CheckBox + android:id="@+id/details_receive_presence" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/receive_presence_updates" + android:textColor="@color/black87" + android:textSize="?attr/TextSizeBody" + android:layout_below="@+id/details_send_presence" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + </RelativeLayout> <LinearLayout |