223 lines
12 KiB
XML
223 lines
12 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/color_background_secondary"
|
|
android:orientation="vertical">
|
|
|
|
<include
|
|
android:id="@+id/toolbar"
|
|
layout="@layout/toolbar" />
|
|
|
|
<ScrollView
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/details_main_layout"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="@dimen/card_padding_regular">
|
|
|
|
<QuickContactBadge
|
|
android:id="@+id/details_contact_badge"
|
|
android:layout_width="@dimen/avatar_on_details_screen_size"
|
|
android:layout_height="@dimen/avatar_on_details_screen_size"
|
|
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:textAppearance="@style/TextAppearance.Conversations.Title" />
|
|
|
|
<com.wefika.flowlayout.FlowLayout
|
|
android:id="@+id/tags"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="4dp"
|
|
android:layout_marginLeft="-2dp"
|
|
android:layout_marginTop="4dp"
|
|
android:orientation="horizontal"></com.wefika.flowlayout.FlowLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/details_lastseen"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
|
|
|
|
<TextView
|
|
android:id="@+id/status_message"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
|
|
|
<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"
|
|
style="@style/Widget.Conversations.CheckBox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:text="@string/send_presence_updates"
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
|
|
|
<CheckBox
|
|
android:id="@+id/details_receive_presence"
|
|
style="@style/Widget.Conversations.CheckBox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/receive_presence_updates"
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
|
</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:textAppearance="@style/TextAppearance.Conversations.Caption" />
|
|
</RelativeLayout>
|
|
</android.support.v7.widget.CardView>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:id="@+id/media_wrapper"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
android:id="@+id/media"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingEnd="@dimen/card_padding_regular"
|
|
android:paddingStart="@dimen/card_padding_regular"
|
|
android:paddingTop="@dimen/card_padding_regular"
|
|
android:paddingBottom="@dimen/card_padding_list"
|
|
android:layout_marginStart="-2dp"
|
|
android:layout_marginEnd="-2dp"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
android:layout_gravity="end">
|
|
|
|
<Button
|
|
android:id="@+id/show_media"
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/view_media"
|
|
android:textColor="?attr/colorAccent" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
|
|
<android.support.v7.widget.CardView
|
|
android:id="@+id/keys_wrapper"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/activity_vertical_margin"
|
|
android:layout_marginLeft="@dimen/activity_horizontal_margin"
|
|
android:layout_marginRight="@dimen/activity_horizontal_margin"
|
|
android:layout_marginTop="@dimen/activity_vertical_margin">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/details_contact_keys"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/card_padding_list"/>
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginTop="8dp"
|
|
android:orientation="horizontal">
|
|
|
|
|
|
<Button
|
|
android:id="@+id/scan_button"
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/scan_qr_code"
|
|
android:textColor="?attr/colorAccent" />
|
|
|
|
<Button
|
|
android:id="@+id/show_inactive_devices"
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:minWidth="0dp"
|
|
android:paddingLeft="16dp"
|
|
android:paddingRight="16dp"
|
|
android:text="@string/show_inactive_devices"
|
|
android:textColor="?attr/colorAccent" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</android.support.v7.widget.CardView>
|
|
</LinearLayout>
|
|
</ScrollView>
|
|
</LinearLayout>
|
|
</layout>
|