Started chat group informations layout
This commit is contained in:
parent
721abe4c6d
commit
714abe7d6c
6 changed files with 130 additions and 10 deletions
|
@ -29,8 +29,7 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.4"
|
||||
android:layout_gravity="center"
|
||||
android:padding="15dp"/>
|
||||
android:gravity="center"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/start_call"
|
||||
|
|
123
res/layout/chat_infos.xml
Normal file
123
res/layout/chat_infos.xml
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/colorH" >
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/top_bar"
|
||||
android:orientation="horizontal"
|
||||
android:background="@color/colorF"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/back"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="left"
|
||||
android:layout_weight="0.2"
|
||||
android:background="@drawable/toolbar_button"
|
||||
android:contentDescription="@string/content_description_back"
|
||||
android:padding="18dp"
|
||||
android:src="@drawable/back"/>
|
||||
|
||||
<TextView
|
||||
android:text="@string/chat_room_infos_title"
|
||||
style="@style/font6"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.4"
|
||||
android:gravity="center"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/confirm"
|
||||
android:src="@drawable/chat_room_creation_confirm"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="0.2"
|
||||
android:background="@drawable/toolbar_button"
|
||||
android:contentDescription="@string/content_description_valid"
|
||||
android:padding="18dp"
|
||||
android:layout_gravity="right"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/layoutSubjectField"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_margin="10dp">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/subjectField"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:background="@drawable/resizable_textfield"
|
||||
android:contentDescription="@string/content_description_conversation_subject"
|
||||
android:hint="@string/conversation_subject_hint"
|
||||
android:gravity="center"
|
||||
android:inputType="textEmailSubject"
|
||||
android:paddingRight="5dp"
|
||||
android:textColor="@android:color/black"
|
||||
android:textCursorDrawable="@null"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/colorG"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textStyle="bold"
|
||||
android:textSize="15sp"
|
||||
android:textColor="@color/colorB"
|
||||
android:text="@string/chat_room_participants" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ListView
|
||||
android:id="@+id/chat_room_participants"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:divider="@color/colorE"
|
||||
android:dividerHeight="1dp"
|
||||
android:fastScrollAlwaysVisible="true"
|
||||
android:fastScrollEnabled="true">
|
||||
|
||||
</ListView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:layout_marginTop="10dp"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:background="@color/colorA">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:textSize="15sp"
|
||||
android:textAllCaps="true"
|
||||
android:textColor="@color/colorG"
|
||||
android:text="@string/chat_room_leave_group"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
|
@ -193,6 +193,9 @@
|
|||
<string name="conversation_information">Conversation Infos</string>
|
||||
<string name="administrator">Admin</string>
|
||||
<string name="conversation_subject_hint">Name your group</string>
|
||||
<string name="chat_room_infos_title">Infos</string>
|
||||
<string name="chat_room_participants">Participants</string>
|
||||
<string name="chat_room_leave_group">Quitter le groupe</string>
|
||||
|
||||
<!-- Status Bar -->
|
||||
<string name="status_connected">Registered</string>
|
||||
|
|
|
@ -69,7 +69,7 @@ public class ChatCreationFragment extends Fragment implements View.OnClickListen
|
|||
displayChatGroupCreation = false;
|
||||
|
||||
mInflater = inflater;
|
||||
View view = inflater.inflate(R.layout.create_chat, container, false);
|
||||
View view = inflater.inflate(R.layout.chat_create, container, false);
|
||||
contactsSelected = new ArrayList<>();
|
||||
|
||||
contactsList = view.findViewById(R.id.contactsList);
|
||||
|
|
|
@ -27,19 +27,14 @@ import android.view.ViewGroup;
|
|||
|
||||
import org.linphone.R;
|
||||
|
||||
public class InfoGroupChatFragment extends Fragment implements View.OnClickListener {
|
||||
public class InfoGroupChatFragment extends Fragment {
|
||||
private LayoutInflater mInflater;
|
||||
|
||||
@Override
|
||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
mInflater = inflater;
|
||||
View view = inflater.inflate(R.layout.create_chat, container, false);
|
||||
View view = inflater.inflate(R.layout.chat_infos, container, false);
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue