2020-06-09 03:58:01 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-06-09 06:53:24 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-14 09:26:56 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:background="@drawable/default_session_background"
|
|
|
|
tools:context="org.thoughtcrime.securesms.loki.activities.EditClosedGroupActivity">
|
2020-06-09 03:58:01 +00:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/mainContentContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
2020-08-14 04:52:15 +00:00
|
|
|
android:id="@+id/ctnGroupNameSection"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing">
|
|
|
|
|
2020-08-14 09:26:56 +00:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cntGroupNameEdit"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-08-14 09:26:56 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:orientation="horizontal"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:visibility="invisible"
|
2020-08-14 09:26:56 +00:00
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/btnCancelGroupNameEdit"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_close_white_24dp"/>
|
|
|
|
|
|
|
|
<EditText
|
|
|
|
style="@style/SessionEditText"
|
|
|
|
android:id="@+id/edtGroupName"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginEnd="4dp"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:inputType="text"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:imeOptions="actionDone"
|
|
|
|
android:hint="@string/activity_edit_closed_group_edit_text_hint" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/btnSaveGroupNameEdit"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
android:src="@drawable/ic_check_white_24dp"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/cntGroupNameDisplay"
|
|
|
|
android:layout_width="match_parent"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-22 05:49:18 +00:00
|
|
|
android:layout_centerVertical="true"
|
2020-08-14 09:26:56 +00:00
|
|
|
android:paddingVertical="@dimen/medium_spacing"
|
|
|
|
android:gravity="center"
|
|
|
|
android:visibility="visible"
|
|
|
|
tools:visibility="invisible">
|
|
|
|
|
|
|
|
<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"
|
|
|
|
android:drawableEnd="@drawable/ic_edit_white_24dp"
|
|
|
|
android:drawablePadding="@dimen/small_spacing"
|
|
|
|
tools:text="SomeGroupName"/>
|
|
|
|
</LinearLayout>
|
2020-06-22 05:49:18 +00:00
|
|
|
|
2020-06-09 03:58:01 +00:00
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-08-14 09:26:56 +00:00
|
|
|
<!-- <RelativeLayout-->
|
|
|
|
<!-- android:id="@+id/ctnGroupNameSection"-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_marginLeft="@dimen/large_spacing"-->
|
|
|
|
<!-- android:layout_marginTop="@dimen/small_spacing"-->
|
|
|
|
<!-- android:layout_marginRight="@dimen/large_spacing"-->
|
|
|
|
<!-- tools:visibility="gone">-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/btnCancelGroupNameEdit"-->
|
|
|
|
<!-- android:layout_width="36dp"-->
|
|
|
|
<!-- android:layout_height="36dp"-->
|
|
|
|
<!-- android:layout_toLeftOf="@+id/edtGroupName"-->
|
|
|
|
<!-- android:layout_centerVertical="true"-->
|
|
|
|
<!-- android:src="@drawable/ic_close_white_24dp"-->
|
|
|
|
<!-- android:visibility="gone" />-->
|
|
|
|
|
|
|
|
<!-- <EditText-->
|
|
|
|
<!-- style="@style/SessionEditText"-->
|
|
|
|
<!-- android:id="@+id/edtGroupName"-->
|
|
|
|
<!-- android:layout_width="@dimen/album_total_width"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:textAlignment="center"-->
|
|
|
|
<!-- android:visibility="invisible"-->
|
|
|
|
<!-- android:hint="@string/activity_edit_closed_group_edit_text_hint" />-->
|
|
|
|
<!--<!– android:layout_width="@dimen/album_total_width"–>-->
|
|
|
|
<!--<!– android:paddingTop="12dp"–>-->
|
|
|
|
<!--<!– android:paddingBottom="@dimen/large_spacing"–>-->
|
|
|
|
<!--<!– android:paddingHorizontal="@dimen/large_spacing"–>-->
|
|
|
|
|
|
|
|
<!--<!– <EditText–>-->
|
|
|
|
<!--<!– style="@style/SessionEditText"–>-->
|
|
|
|
<!--<!– android:id="@+id/nameEditText"–>-->
|
|
|
|
<!--<!– android:layout_width="match_parent"–>-->
|
|
|
|
<!--<!– android:layout_height="wrap_content"–>-->
|
|
|
|
<!--<!– android:layout_marginLeft="@dimen/large_spacing"–>-->
|
|
|
|
<!--<!– android:layout_marginTop="@dimen/medium_spacing"–>-->
|
|
|
|
<!--<!– android:layout_marginRight="@dimen/large_spacing"–>-->
|
|
|
|
<!--<!– android:layout_marginBottom="@dimen/medium_spacing"–>-->
|
|
|
|
<!--<!– android:hint="@string/activity_create_closed_group_edit_text_hint" />–>-->
|
|
|
|
|
|
|
|
<!-- <TextView-->
|
|
|
|
<!-- android:id="@+id/btnGroupNameDisplay"-->
|
|
|
|
<!-- android:layout_width="wrap_content"-->
|
|
|
|
<!-- android:layout_height="wrap_content"-->
|
|
|
|
<!-- android:layout_centerInParent="true"-->
|
|
|
|
<!-- android:textColor="@color/text"-->
|
|
|
|
<!-- android:textSize="@dimen/very_large_font_size"-->
|
|
|
|
<!-- android:textStyle="bold"-->
|
|
|
|
<!-- android:drawableRight="@drawable/ic_edit_white_24dp"-->
|
|
|
|
<!-- android:drawablePadding="@dimen/small_spacing"/>-->
|
|
|
|
|
|
|
|
<!-- <ImageView-->
|
|
|
|
<!-- android:id="@+id/imgSaveGroupName"-->
|
|
|
|
<!-- android:layout_width="36dp"-->
|
|
|
|
<!-- android:layout_height="36dp"-->
|
|
|
|
<!-- android:src="@drawable/ic_check_white_24dp"-->
|
|
|
|
<!-- android:layout_toRightOf="@+id/edtGroupName"-->
|
|
|
|
<!-- android:layout_centerVertical="true"-->
|
|
|
|
<!-- android:visibility="gone" />-->
|
|
|
|
|
|
|
|
<!-- </RelativeLayout>-->
|
|
|
|
|
|
|
|
<!-- <!– TODO: WTF? –>-->
|
|
|
|
<!-- <LinearLayout-->
|
|
|
|
<!-- android:layout_width="match_parent"-->
|
|
|
|
<!-- android:layout_height="wrap_content">-->
|
|
|
|
<!-- <View-->
|
|
|
|
<!-- android:layout_weight="2"-->
|
|
|
|
<!-- android:layout_height="0px"-->
|
|
|
|
<!-- android:layout_width="@dimen/large_spacing"/>-->
|
|
|
|
<!-- <View-->
|
|
|
|
<!-- android:layout_weight="2"-->
|
|
|
|
<!-- android:layout_height="0px"-->
|
|
|
|
<!-- android:layout_width="@dimen/large_spacing"/>-->
|
|
|
|
<!-- </LinearLayout>-->
|
2020-06-09 06:53:24 +00:00
|
|
|
|
2020-06-09 03:58:01 +00:00
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/large_spacing"
|
|
|
|
android:layout_marginTop="@dimen/medium_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing"
|
|
|
|
android:layout_marginBottom="@dimen/medium_spacing"
|
|
|
|
android:textSize="@dimen/small_font_size"
|
|
|
|
android:textColor="@color/text"
|
|
|
|
android:alpha="0.6"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:text="@string/activity_edit_closed_group_explanation" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="1px"
|
|
|
|
android:background="@color/separator" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-14 09:26:56 +00:00
|
|
|
android:layout_marginStart="@dimen/large_spacing"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
2020-08-14 09:26:56 +00:00
|
|
|
android:layout_marginEnd="@dimen/massive_spacing"
|
2020-06-09 03:58:01 +00:00
|
|
|
android:layout_marginBottom="@dimen/small_spacing"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:alpha="0.8"
|
|
|
|
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"
|
|
|
|
android:layout_width="135dp"
|
|
|
|
android:layout_height="@dimen/small_button_height"
|
|
|
|
android:layout_marginTop="@dimen/small_spacing"
|
|
|
|
android:layout_marginRight="@dimen/large_spacing"
|
|
|
|
android:layout_marginLeft="@dimen/very_large_spacing"
|
|
|
|
android:layout_marginBottom="@dimen/small_spacing"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:text="@string/activity_edit_closed_group_add_members" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
android:layout_width="match_parent"
|
2020-08-14 09:26:56 +00:00
|
|
|
android:layout_height="match_parent"/>
|
2020-06-09 03:58:01 +00: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>
|