2020-06-09 13:58:01 +10:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-18 08:29:03 +10:00
|
|
|
<RelativeLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-14 19:26:56 +10:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
tools:context="org.thoughtcrime.securesms.loki.activities.EditClosedGroupActivity">
|
2020-06-09 13:58:01 +10:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mainContentContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2020-08-14 14:52:15 +10:00
|
|
|
android:id="@+id/ctnGroupNameSection"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:padding="@dimen/large_spacing"
|
|
|
|
android:gravity="center">
|
2020-06-09 13:58:01 +10:00
|
|
|
|
2020-08-14 19:26:56 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cntGroupNameEdit"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:gravity="center"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:orientation="horizontal"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:visibility="invisible"
|
2020-08-20 16:47:15 +10:00
|
|
|
tools:visibility="invisible">
|
2020-08-14 19:26:56 +10:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/btnCancelGroupNameEdit"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2020-08-20 16:47:15 +10:00
|
|
|
android:src="@drawable/ic_baseline_clear_24"/>
|
2020-08-14 19:26:56 +10:00
|
|
|
|
|
|
|
<EditText
|
|
|
|
style="@style/SessionEditText"
|
|
|
|
android:id="@+id/edtGroupName"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_width="wrap_content"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_marginStart="@dimen/small_spacing"
|
|
|
|
android:layout_marginEnd="@dimen/small_spacing"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:textAlignment="center"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:paddingTop="12dp"
|
|
|
|
android:paddingBottom="12dp"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:inputType="text"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
android:hint="@string/activity_edit_closed_group_edit_text_hint" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/btnSaveGroupNameEdit"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:layout_gravity="center"
|
2020-08-20 16:47:15 +10:00
|
|
|
android:src="@drawable/ic_baseline_done_24"/>
|
2020-08-14 19:26:56 +10:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cntGroupNameDisplay"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="visible"
|
2020-08-20 16:47:15 +10:00
|
|
|
tools:visibility="visible">
|
2020-08-14 19:26:56 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/lblGroupNameDisplay"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/very_large_font_size"
|
|
|
|
android:textStyle="bold"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
android:paddingEnd="0dp"
|
2020-08-20 16:47:15 +10:00
|
|
|
android:drawableEnd="@drawable/ic_baseline_edit_24"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:drawablePadding="@dimen/small_spacing"
|
|
|
|
tools:text="SomeGroupName"/>
|
2020-08-18 10:05:24 +10:00
|
|
|
|
2020-08-14 19:26:56 +10:00
|
|
|
</LinearLayout>
|
2020-06-22 15:49:18 +10:00
|
|
|
|
2020-06-09 13:58:01 +10:00
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:background="@color/separator" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
2020-06-09 13:58:01 +10:00
|
|
|
|
|
|
|
<TextView
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_width="0dp"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_marginStart="@dimen/medium_spacing"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_marginEnd="@dimen/small_spacing"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_marginBottom="@dimen/small_spacing"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/activity_edit_closed_group_edit_members"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:textSize="@dimen/medium_font_size" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/addMembersClosedGroupButton"
|
|
|
|
style="@style/MediumProminentOutlineButton"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_width="wrap_content"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_height="@dimen/small_button_height"
|
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:layout_marginEnd="@dimen/medium_spacing"
|
|
|
|
android:layout_marginStart="@dimen/small_spacing"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:layout_marginBottom="@dimen/small_spacing"
|
2020-08-18 10:05:24 +10:00
|
|
|
android:paddingStart="@dimen/medium_spacing"
|
|
|
|
android:paddingEnd="@dimen/medium_spacing"
|
2020-06-09 13:58:01 +10:00
|
|
|
android:text="@string/activity_edit_closed_group_add_members" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-08-18 10:05:24 +10:00
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:background="@color/separator" />
|
|
|
|
|
2020-08-19 10:06:26 +10:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2020-06-09 13:58:01 +10:00
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
android:layout_width="match_parent"
|
2020-08-14 19:26:56 +10:00
|
|
|
android:layout_height="match_parent"/>
|
2020-06-09 13:58:01 +10:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/emptyStateContainer"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_horizontal"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_centerInParent="true">
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|