Created the update conversation fragment

This commit is contained in:
Pierre
2018-01-01 15:16:21 +01:00
parent fc9d09fcd4
commit ae5f851101
8 changed files with 216 additions and 9 deletions

View File

@ -23,8 +23,9 @@
<!-- Create new conversations button -->
<Button
android:id="@+id/fragment_conversationslist_create"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/fragment_conversationslist_create_button"
android:enabled="false" /><!-- Not available yet -->
android:enabled="true" />
</LinearLayout>

View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<!-- Conversation name -->
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:id="@+id/fragment_update_conversation_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/fragment_update_conversation_name_placeholder"
android:inputType="textCapSentences"
android:maxLines="1"
/>
</android.support.design.widget.TextInputLayout>
<!-- Conversation members -->
<ListView
android:id="@+id/fragment_update_conversation_members"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:layout_weight="1"/>
<Button
android:id="@+id/fragment_update_conversation_addmember"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="0dp"
android:text="@string/fragment_update_conversation_addmember"
/>
<!-- Follow or not the conversation -->
<CheckBox
android:id="@+id/fragment_update_conversation_follow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/fragment_update_conversation_follow"/>
<!-- Create the conversation -->
<Button
android:id="@+id/fragment_update_conversation_submit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/fragment_update_conversation_button_create"
android:background="@color/colorPrimary"/>
</LinearLayout>