2014-10-22 16:38:44 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-02-18 08:06:37 +00:00
|
|
|
<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">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:background="?attr/color_background_secondary">
|
|
|
|
|
2018-03-18 08:30:22 +00:00
|
|
|
<include android:id="@+id/toolbar"
|
|
|
|
layout="@layout/toolbar" />
|
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<ScrollView
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_above="@+id/button_bar"
|
2018-03-18 08:30:22 +00:00
|
|
|
android:layout_below="@id/toolbar">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/account_main_layout"
|
|
|
|
android:layout_width="match_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:orientation="vertical">
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
android:id="@+id/editor"
|
|
|
|
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">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<RelativeLayout
|
2016-01-11 10:17:45 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 14:17:11 +00:00
|
|
|
android:padding="@dimen/card_padding_regular">
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<com.makeramen.roundedimageview.RoundedImageView
|
|
|
|
android:id="@+id/avater"
|
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"
|
2017-12-14 18:28:52 +00:00
|
|
|
android:layout_alignParentTop="true"
|
2018-06-23 07:29:29 +00:00
|
|
|
android:layout_marginRight="@dimen/avatar_item_distance"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:contentDescription="@string/account_image_description"
|
|
|
|
app:riv_corner_radius="2dp"/>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2015-11-28 19:11:38 +00:00
|
|
|
<LinearLayout
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toRightOf="@+id/avater"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:orientation="vertical">
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-17 06:09:21 +00:00
|
|
|
<android.support.design.widget.TextInputLayout
|
2018-02-18 08:06:37 +00:00
|
|
|
android:id="@+id/account_jid_layout"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_width="match_parent"
|
2015-11-28 19:11:38 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:hint="@string/account_settings_jabber_id"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error">
|
2018-02-17 06:09:21 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<AutoCompleteTextView
|
|
|
|
android:id="@+id/account_jid"
|
|
|
|
android:layout_width="match_parent"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:imeOptions="actionNext"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:inputType="textEmailAddress"
|
2018-11-20 20:33:43 +00:00
|
|
|
android:textColor="?attr/edit_text_color"
|
2018-03-31 10:16:56 +00:00
|
|
|
style="@style/Widget.Conversations.EditText"/>
|
2018-02-17 06:09:21 +00:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
|
|
|
|
2018-02-17 06:09:21 +00:00
|
|
|
<android.support.design.widget.TextInputLayout
|
2018-02-18 08:06:37 +00:00
|
|
|
android:id="@+id/account_password_layout"
|
2015-11-28 19:11:38 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
app:passwordToggleDrawable="@drawable/visibility_toggle_drawable"
|
|
|
|
app:passwordToggleEnabled="true"
|
2018-03-31 10:16:56 +00:00
|
|
|
app:passwordToggleTint="?android:textColorSecondary"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error">
|
2018-02-17 06:09:21 +00:00
|
|
|
|
2018-11-21 11:08:41 +00:00
|
|
|
<eu.siacs.conversations.ui.widget.TextInputEditText
|
2018-02-18 08:06:37 +00:00
|
|
|
android:id="@+id/account_password"
|
2018-02-17 06:09:21 +00:00
|
|
|
android:layout_width="match_parent"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:hint="@string/password"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:inputType="textPassword"
|
2018-11-20 20:33:43 +00:00
|
|
|
android:textColor="?attr/edit_text_color"
|
2018-03-31 10:16:56 +00:00
|
|
|
style="@style/Widget.Conversations.EditText"/>
|
2018-02-17 06:09:21 +00:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/name_port"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:weightSum="1">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0.8"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/hostname_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:hint="@string/account_settings_hostname"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error">
|
2018-02-18 08:06:37 +00:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/hostname"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-08-29 07:33:02 +00:00
|
|
|
android:inputType="textWebEmailAddress"
|
2018-03-31 10:16:56 +00:00
|
|
|
style="@style/Widget.Conversations.EditText"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="0.2"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<android.support.design.widget.TextInputLayout
|
|
|
|
android:id="@+id/port_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:hint="@string/account_settings_port"
|
|
|
|
app:hintTextAppearance="@style/TextAppearance.Conversations.Design.Hint"
|
|
|
|
app:errorTextAppearance="@style/TextAppearance.Conversations.Design.Error">
|
2018-02-18 08:06:37 +00:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
android:id="@+id/port"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:inputType="number"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:maxLength="5"
|
|
|
|
style="@style/Widget.Conversations.EditText"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</android.support.design.widget.TextInputLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/account_register_new"
|
2018-04-01 07:18:12 +00:00
|
|
|
style="@style/Widget.Conversations.CheckBox"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
2018-02-28 16:39:59 +00:00
|
|
|
android:text="@string/register_account"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</android.support.v7.widget.CardView>
|
2016-01-11 10:17:45 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
android:id="@+id/os_optimization"
|
|
|
|
android:layout_width="fill_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +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"
|
|
|
|
android:visibility="gone">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-04 19:37:42 +00:00
|
|
|
<LinearLayout
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="match_parent"
|
2014-10-21 20:22:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-04 19:37:42 +00:00
|
|
|
android:orientation="vertical">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-04 19:37:42 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-04 19:37:42 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="@dimen/card_padding_regular">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-03-04 19:37:42 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/os_optimization_headline"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/battery_optimizations_enabled"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Title"/>
|
2018-03-04 19:37:42 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/os_optimization_body"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="8dp"
|
|
|
|
android:text="@string/battery_optimizations_enabled_explained"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2018-03-04 19:37:42 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-03-04 19:37:42 +00:00
|
|
|
android:layout_gravity="right"
|
|
|
|
android:gravity="right">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/os_optimization_disable"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2018-03-04 19:37:42 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:text="@string/disable"
|
2018-04-27 12:50:27 +00:00
|
|
|
android:textColor="?colorAccent"/>
|
2018-03-04 19:37:42 +00:00
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
2018-02-18 08:06:37 +00:00
|
|
|
</android.support.v7.widget.CardView>
|
|
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
android:id="@+id/stats"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
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"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:visibility="gone">
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2018-02-18 14:17:11 +00:00
|
|
|
android:padding="@dimen/card_padding_regular">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableLayout
|
|
|
|
android:layout_width="match_parent"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:shrinkColumns="0"
|
|
|
|
android:stretchColumns="1">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="UselessParent">
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_session_established"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/session_est"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</TableRow>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
</TableLayout>
|
|
|
|
|
|
|
|
<TableLayout
|
|
|
|
android:id="@+id/server_info_more"
|
|
|
|
android:layout_width="match_parent"
|
2014-10-21 20:22:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:shrinkColumns="0"
|
|
|
|
android:stretchColumns="1"
|
|
|
|
android:visibility="gone">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_pep"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_pep"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_blocking"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_blocking"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_stream_management"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_sm"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2020-04-21 09:40:05 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_external_service_discovery"
|
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_external_service"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_roster_version"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_roster_version"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-21 20:22:01 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_carbon_messages"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_carbons"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2016-02-12 10:39:27 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_mam"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2016-02-12 10:39:27 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_mam"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2015-08-14 20:24:05 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_csi"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2015-08-14 20:24:05 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_csi"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"
|
2018-02-18 08:06:37 +00:00
|
|
|
tools:ignore="RtlHardcoded"/>
|
|
|
|
</TableRow>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:id="@+id/push_row"
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_push"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2017-05-04 11:02:46 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_push"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</TableRow>
|
2017-05-04 11:02:46 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TableRow
|
|
|
|
android:layout_width="fill_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2017-05-04 11:02:46 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
2018-05-26 08:17:24 +00:00
|
|
|
android:id="@+id/server_info_http_upload_description"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:text="@string/server_info_http_upload"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2017-05-04 11:02:46 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/server_info_http_upload"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="right"
|
|
|
|
android:paddingLeft="4dp"
|
2018-03-02 13:42:34 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</TableRow>
|
|
|
|
</TableLayout>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<RelativeLayout
|
2018-11-09 16:47:36 +00:00
|
|
|
android:id="@+id/your_name_box"
|
2014-10-22 16:38:44 +00:00
|
|
|
android:layout_width="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_height="match_parent"
|
2020-01-05 14:59:54 +00:00
|
|
|
android:layout_marginTop="12dp">
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-11-09 16:47:36 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toLeftOf="@+id/action_edit_your_name"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/your_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/no_name_set_instructions"
|
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Body1.Tertiary"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/your_name_desc"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/your_name"
|
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_edit_your_name"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:alpha="?attr/icon_alpha"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:padding="@dimen/image_button_padding"
|
|
|
|
android:src="?attr/icon_edit_body"
|
|
|
|
android:visibility="visible"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/pgp_fingerprint_box"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2020-01-05 14:59:54 +00:00
|
|
|
android:layout_marginTop="12dp">
|
2018-11-09 16:47:36 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toLeftOf="@+id/action_delete_pgp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pgp_fingerprint"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-01 18:44:08 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Fingerprint"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pgp_fingerprint_desc"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/openpgp_key_id"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_delete_pgp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:alpha="?attr/icon_alpha"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:padding="@dimen/image_button_padding"
|
|
|
|
android:src="?attr/icon_remove"
|
|
|
|
android:visibility="visible"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/axolotl_fingerprint_box"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2020-01-05 14:59:54 +00:00
|
|
|
android:layout_marginTop="12dp">
|
2018-02-18 08:06:37 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toLeftOf="@+id/axolotl_actions"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/axolotl_fingerprint"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-01 18:44:08 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Fingerprint"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/own_fingerprint_desc"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Caption"/>
|
2018-02-18 08:06:37 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/axolotl_actions"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_copy_axolotl_to_clipboard"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="?attr/icon_alpha"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/copy_omemo_clipboard_description"
|
|
|
|
android:padding="@dimen/image_button_padding"
|
|
|
|
android:src="?attr/icon_copy"
|
|
|
|
android:visibility="visible"/>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_regenerate_axolotl_key"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="?attr/icon_alpha"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/regenerate_omemo_key"
|
|
|
|
android:padding="@dimen/image_button_padding"
|
|
|
|
android:src="?attr/icon_refresh"
|
|
|
|
android:visibility="gone"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
</RelativeLayout>
|
2014-10-22 16:38:44 +00:00
|
|
|
</LinearLayout>
|
2018-02-18 08:06:37 +00:00
|
|
|
</android.support.v7.widget.CardView>
|
2014-10-22 16:38:44 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<android.support.v7.widget.CardView
|
|
|
|
android:id="@+id/other_device_keys_card"
|
|
|
|
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"
|
|
|
|
android:visibility="gone">
|
2016-01-11 10:17:45 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="match_parent"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:orientation="vertical"
|
2018-02-18 14:17:11 +00:00
|
|
|
android:padding="@dimen/card_padding_list">
|
2016-01-11 10:17:45 +00:00
|
|
|
|
|
|
|
<TextView
|
2018-02-18 08:06:37 +00:00
|
|
|
android:id="@+id/other_device_keys_title"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-03-04 19:37:42 +00:00
|
|
|
android:layout_margin="@dimen/list_padding"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:text="@string/other_devices"
|
2018-03-31 10:16:56 +00:00
|
|
|
android:textAppearance="@style/TextAppearance.Conversations.Title"/>
|
2016-01-11 10:17:45 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/other_device_keys"
|
|
|
|
android:layout_width="fill_parent"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-28 21:18:33 +00:00
|
|
|
android:orientation="vertical"/>
|
2016-01-11 10:17:45 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<Button
|
|
|
|
android:id="@+id/clear_devices"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2016-01-11 10:17:45 +00:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
android:text="@string/clear_other_devices"
|
2018-04-27 12:50:27 +00:00
|
|
|
android:textColor="?colorAccent"/>
|
2016-01-11 10:17:45 +00:00
|
|
|
</LinearLayout>
|
2018-02-18 08:06:37 +00:00
|
|
|
</android.support.v7.widget.CardView>
|
2014-10-22 16:38:44 +00:00
|
|
|
</LinearLayout>
|
2018-02-18 08:06:37 +00:00
|
|
|
</ScrollView>
|
2017-12-14 18:28:52 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/button_bar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_alignParentStart="true">
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/cancel_button"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="0dp"
|
2015-07-19 12:09:49 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_weight="1"
|
2018-03-02 16:09:00 +00:00
|
|
|
android:text="@string/cancel"/>
|
2015-07-19 12:09:49 +00:00
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
<View
|
|
|
|
android:layout_width="1dp"
|
|
|
|
android:layout_height="fill_parent"
|
|
|
|
android:layout_marginBottom="7dp"
|
|
|
|
android:layout_marginTop="7dp"
|
|
|
|
android:background="?attr/divider"/>
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/save_button"
|
2018-04-21 20:17:47 +00:00
|
|
|
style="@style/Widget.Conversations.Button.Borderless"
|
2018-02-18 08:06:37 +00:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:enabled="false"
|
2018-03-02 16:09:00 +00:00
|
|
|
android:text="@string/save"/>
|
2014-10-22 16:38:44 +00:00
|
|
|
</LinearLayout>
|
|
|
|
|
2018-02-18 08:06:37 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
</layout>
|