148 lines
6.6 KiB
XML
148 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:background="?attr/color_background_secondary" >
|
|
|
|
<LinearLayout
|
|
android:id="@+id/details_main_layout"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical" >
|
|
|
|
<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="?attr/infocard_border"
|
|
android:padding="@dimen/infocard_padding" >
|
|
|
|
<QuickContactBadge
|
|
android:id="@+id/details_contact_badge"
|
|
android:layout_width="72dp"
|
|
android:layout_height="72dp"
|
|
android:layout_alignParentTop="true"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<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" >
|
|
|
|
<TextView
|
|
android:id="@+id/details_contactjid"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/account_settings_example_jabber_id"
|
|
android:textColor="?attr/color_text_primary"
|
|
android:textSize="?attr/TextSizeHeadline"
|
|
android:textStyle="bold" />
|
|
|
|
<com.wefika.flowlayout.FlowLayout
|
|
android:id="@+id/tags"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginLeft="-2dp"
|
|
android:layout_marginBottom="4dp"
|
|
android:orientation="horizontal">
|
|
</com.wefika.flowlayout.FlowLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/details_lastseen"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?attr/color_text_primary"
|
|
android:textSize="?attr/TextSizeBody" />
|
|
|
|
<TextView
|
|
android:layout_marginTop="8dp"
|
|
android:id="@+id/status_message"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textColor="?attr/color_text_secondary"
|
|
android:textStyle="italic"
|
|
android:textSize="?attr/TextSizeBody" />
|
|
|
|
<Button
|
|
android:id="@+id/add_contact_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/add_contact"/>
|
|
|
|
<CheckBox
|
|
android:id="@+id/details_send_presence"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/send_presence_updates"
|
|
android:textColor="?attr/color_text_primary"
|
|
android:textSize="?attr/TextSizeBody" />
|
|
|
|
<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="?attr/color_text_primary"
|
|
android:textSize="?attr/TextSizeBody" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/details_account"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentRight="true"
|
|
android:layout_below="@+id/details_jidbox"
|
|
android:layout_marginTop="32dp"
|
|
android:text="@string/using_account"
|
|
android:textColor="?attr/color_text_secondary"
|
|
android:textSize="?attr/TextSizeInfo" />
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/keys_wrapper"
|
|
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="?attr/infocard_border"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/infocard_padding">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/details_contact_keys"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:divider="?android:dividerHorizontal"
|
|
android:orientation="vertical"
|
|
android:showDividers="middle" >
|
|
</LinearLayout>
|
|
<Button
|
|
android:layout_marginTop="8dp"
|
|
android:id="@+id/show_inactive_devices"
|
|
style="?android:attr/borderlessButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/show_inactive_devices"
|
|
android:layout_gravity="center_horizontal"
|
|
android:textColor="@color/accent"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|