Add new class

This commit is contained in:
Erwan Croze 2017-10-06 14:28:28 +02:00
parent 83b182f591
commit 1806dcbf7c
5 changed files with 196 additions and 4 deletions

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/topbar"
android:background="@color/colorF"
android:orientation="horizontal"
@ -18,12 +19,13 @@
android:padding="18dp"/>
<TextView
android:text="@string/assistant"
style="@style/font1"
style="@style/font8"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.6"
android:gravity="center"/>
android:background="@drawable/toolbar_button"
android:gravity="center"
android:text="@string/assistant"/>
<ImageView
android:id="@+id/assistant_cancel"

View file

@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorH" >
<LinearLayout
android:id="@+id/top_bar"
android:orientation="horizontal"
android:layout_gravity="center_horizontal"
android:layout_width="match_parent"
android:layout_height="60dp">
<ImageView
android:id="@+id/back"
android:src="@drawable/back"
android:background="@drawable/toolbar_button"
android:contentDescription="@string/content_description_back"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.2"
android:padding="18dp"/>
<TextView
style="@style/font6"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.6"
android:background="@drawable/toolbar_button"
android:gravity="center"
android:text="@string/conversation_information"/>
<ImageView
android:id="@+id/valid"
android:src="@drawable/valid_disabled"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.2"
android:background="@drawable/toolbar_button"
android:contentDescription="@string/content_description_back"
android:padding="18dp"
android:layout_gravity="end"/>
</LinearLayout>
<RelativeLayout
android:id="@+id/layoutSearchField"
android:layout_below="@+id/top_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp">
<EditText
android:id="@+id/searchField"
android:layout_width="match_parent"
android:layout_height="40dp"
android:background="@drawable/resizable_textfield"
android:contentDescription="@string/content_description_search_contact"
android:gravity="center"
android:inputType="textPersonName"
android:paddingRight="5dp"
android:textColor="@android:color/black"
android:textCursorDrawable="@null"/>
</RelativeLayout>
</RelativeLayout>

View file

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:background="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="60dp"
android:padding="5dp"
android:gravity="center_vertical"
android:orientation="vertical">
<LinearLayout
android:id="@+id/layout"
android:background="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:layout_toLeftOf="@+id/layout_admin"
android:layout_toStartOf="@+id/layout_admin"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true">
<TextView
android:id="@+id/contact_name"
style="@style/font6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:gravity="top|left"
android:lines="1"/>
<TextView
android:id="@+id/contact_address"
style="@style/font2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:gravity="bottom|left"
android:lines="1"/>
</LinearLayout>
<ImageView
android:id="@+id/remove"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_gravity="right"
android:paddingRight="10dp"
android:src="@drawable/chat_group_delete"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/layout_admin"/>
<LinearLayout
android:id="@+id/layout_admin"
android:background="@drawable/list_selector"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal"
android:layout_toRightOf="@+id/layout"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/remove"
android:layout_toStartOf="@+id/remove">
<ImageView
android:id="@+id/contact_is_select"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:layout_gravity="right"
android:visibility="invisible"
android:paddingRight="20dp"
android:src="@drawable/check_selected"/>
<TextView
android:id="@+id/admin"
style="@style/font6"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="0.6"
android:background="@drawable/toolbar_button"
android:gravity="center"
android:text="@string/administrator"/>
</LinearLayout>
</RelativeLayout>

View file

@ -189,6 +189,8 @@
<string name="displayed">Read</string>
<string name="delivered">Delivered</string>
<string name="resend">Resend</string>
<string name="conversation_information">Conversation Infos</string>
<string name="administrator">Admin</string>
<!-- Status Bar -->
<string name="status_connected">Registered</string>

View file

@ -0,0 +1,31 @@
package org.linphone;
/*
ChatGroupCreationFragment.java
Copyright (C) 2017 Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import android.app.Fragment;
import android.view.View;
public class ChatGroupCreationFragment extends Fragment implements View.OnClickListener {
@Override
public void onClick(View view) {
}
}