2014-10-22 16:38:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-03-18 08:30:22 +00:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-09-15 17:38:45 +00:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/color_background_secondary"
|
|
|
|
android:orientation="vertical">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-04-01 07:18:12 +00:00
|
|
|
<include
|
|
|
|
android:id="@+id/toolbar"
|
2018-09-15 17:38:45 +00:00
|
|
|
layout="@layout/toolbar" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<ScrollView
|
2018-02-17 17:58:56 +00:00
|
|
|
android:layout_width="fill_parent"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_height="fill_parent">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/details_main_layout"
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:orientation="vertical">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-02-17 17:58:56 +00:00
|
|
|
android:layout_width="match_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
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">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-02-17 17:07:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:padding="@dimen/card_padding_regular">
|
2018-02-17 17:58:56 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<QuickContactBadge
|
|
|
|
android:id="@+id/details_contact_badge"
|
2018-06-23 17:00:23 +00:00
|
|
|
android:layout_width="@dimen/avatar_on_details_screen_size"
|
|
|
|
android:layout_height="@dimen/avatar_on_details_screen_size"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_alignParentTop="true"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:scaleType="centerCrop" />
|
2018-02-17 17:58:56 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/details_jidbox"
|
2018-02-17 17:58:56 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
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"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Title" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<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"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:orientation="horizontal"></com.wefika.flowlayout.FlowLayout>
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/details_lastseen"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_message"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/add_contact_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:text="@string/add_contact" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/details_send_presence"
|
2018-04-01 07:18:12 +00:00
|
|
|
style="@style/Widget.Conversations.CheckBox"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/send_presence_updates"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/details_receive_presence"
|
2018-04-01 07:18:12 +00:00
|
|
|
style="@style/Widget.Conversations.CheckBox"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/receive_presence_updates"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1" />
|
2018-03-18 08:30:22 +00:00
|
|
|
</LinearLayout>
|
2018-02-17 17:58:56 +00:00
|
|
|
|
|
|
|
<TextView
|
2018-03-18 08:30:22 +00:00
|
|
|
android:id="@+id/details_account"
|
2018-02-17 17:58:56 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_below="@+id/details_jidbox"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:text="@string/using_account"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Caption" />
|
2018-03-18 08:30:22 +00:00
|
|
|
</RelativeLayout>
|
2021-01-18 17:26:46 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2018-03-18 08:30:22 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-09-15 17:38:45 +00:00
|
|
|
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">
|
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2018-09-15 17:38:45 +00:00
|
|
|
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"
|
2018-09-16 07:47:33 +00:00
|
|
|
android:text="@string/view_media"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textColor="?attr/colorAccent" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2021-01-18 17:26:46 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2018-09-15 17:38:45 +00:00
|
|
|
|
2021-01-18 17:26:46 +00:00
|
|
|
<androidx.cardview.widget.CardView
|
2018-03-18 08:30:22 +00:00
|
|
|
android:id="@+id/keys_wrapper"
|
|
|
|
android:layout_width="fill_parent"
|
2018-02-17 17:58:56 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
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">
|
2018-02-17 17:58:56 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-02-26 14:44:50 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-17 17:07:20 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:orientation="vertical">
|
2018-02-26 14:44:50 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/details_contact_keys"
|
|
|
|
android:layout_width="match_parent"
|
2018-02-26 14:44:50 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:orientation="vertical"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:padding="@dimen/card_padding_list"/>
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-02-26 14:44:50 +00:00
|
|
|
android:layout_width="wrap_content"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:orientation="horizontal">
|
2018-02-17 17:07:20 +00:00
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/scan_button"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-04-01 07:18:12 +00:00
|
|
|
android:minWidth="0dp"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:text="@string/scan_qr_code"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textColor="?attr/colorAccent" />
|
2018-03-18 08:30:22 +00:00
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/show_inactive_devices"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-04-01 07:18:12 +00:00
|
|
|
android:minWidth="0dp"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:text="@string/show_inactive_devices"
|
2018-09-15 17:38:45 +00:00
|
|
|
android:textColor="?attr/colorAccent" />
|
2018-03-18 08:30:22 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2021-01-18 17:26:46 +00:00
|
|
|
</androidx.cardview.widget.CardView>
|
2018-03-18 08:30:22 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
</LinearLayout>
|
2018-02-17 17:58:56 +00:00
|
|
|
</layout>
|