mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
45187174f2
* add 'New Group or Subject' to contact profiles and allow group creation from there * preselect contacts on group-creation from profile * remove dead code * also for existing group-creation, do not finish calling activity needlessly (this is pretty unexpected behavior) * on editing groups, just use isProtected() from the chat to edit
87 lines
3.1 KiB
XML
87 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/group_image_holder"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="106dp"
|
|
android:paddingStart="14dp"
|
|
android:paddingEnd="18dp"
|
|
android:paddingTop="14dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical">
|
|
|
|
<org.thoughtcrime.securesms.components.ImageDivet android:id="@+id/avatar"
|
|
android:layout_width="70dp"
|
|
android:layout_height="70dp"
|
|
position="bottom_right"
|
|
android:layout_marginEnd="10dp"
|
|
android:contentDescription="@string/group_avatar" />
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiEditText
|
|
android:id="@+id/group_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:padding="10dp"
|
|
android:lines="1"
|
|
android:maxLength="255"
|
|
android:inputType="textAutoCorrect"
|
|
android:hint="@string/name_desktop" />
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:id="@+id/group_hints"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:textSize="18sp"
|
|
android:text="@string/verified_group_explain" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="10dp"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
style="@style/ButtonPrimary"
|
|
android:id="@+id/add_member_button"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="fill_vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_marginStart="15dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:text="@string/group_add_members"/>
|
|
|
|
<Button
|
|
style="@style/ButtonPrimary"
|
|
android:id="@+id/verify_button"
|
|
android:layout_weight="1"
|
|
android:layout_gravity="fill_vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="40dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginBottom="15dp"
|
|
android:text="@string/qrshow_title"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<ListView android:id="@+id/selected_contacts_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|