Adding new ressources
BIN
res/drawable-xhdpi/chat_group_add.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
res/drawable-xhdpi/chat_group_avatar.png
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
res/drawable-xhdpi/chat_group_delete.png
Normal file
After Width: | Height: | Size: 636 B |
BIN
res/drawable-xhdpi/chat_group_informations.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
res/drawable-xhdpi/chat_group_informations_disabled.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
res/drawable-xhdpi/check_selected.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xhdpi/check_unselected.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xhdpi/contacts_all.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 3.2 KiB |
BIN
res/drawable-xhdpi/contacts_sip.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
res/drawable-xhdpi/message_delivered.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-xhdpi/message_read.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
res/drawable-xhdpi/message_undelivered.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-xhdpi/next.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
161
res/layout/create_chat.xml
Normal file
|
@ -0,0 +1,161 @@
|
||||||
|
<?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: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"/>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.2">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/all_contacts"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/toolbar_button"
|
||||||
|
android:contentDescription="@string/content_description_all_contacts"
|
||||||
|
android:padding="15dp"
|
||||||
|
android:src="@drawable/contacts_all"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/all_contacts_select"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="5dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="@color/colorA"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:layout_weight="0.2">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/linphone_contacts"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/toolbar_button"
|
||||||
|
android:contentDescription="@string/content_description_linphone_contacts"
|
||||||
|
android:gravity="center"
|
||||||
|
android:padding="15dp"
|
||||||
|
android:src="@drawable/contacts_sip"/>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/linphone_contacts_select"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="5dp"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
|
android:background="@color/colorA"
|
||||||
|
android:visibility="gone"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/next"
|
||||||
|
android:src="@drawable/next"
|
||||||
|
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="right"/>
|
||||||
|
|
||||||
|
</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"/>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/clearSearchField"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:paddingLeft="5dp"
|
||||||
|
android:paddingRight="5dp"
|
||||||
|
android:src="@drawable/clean_field_default"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_below="@+id/layoutSearchField"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent">
|
||||||
|
|
||||||
|
<ListView
|
||||||
|
android:id="@+id/contactsList"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:divider="@color/colorE"
|
||||||
|
android:fastScrollEnabled="true"
|
||||||
|
android:fastScrollAlwaysVisible="true"
|
||||||
|
android:dividerHeight="1dp" />
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/contactsFetchInProgress"
|
||||||
|
style="?android:attr/progressBarStyle"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/noSipContact"
|
||||||
|
android:text="@string/no_sip_contact"
|
||||||
|
style="@style/font6"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_centerVertical="true"/>
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/noContact"
|
||||||
|
android:text="@string/no_contact"
|
||||||
|
android:visibility="gone"
|
||||||
|
style="@style/font6"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:layout_centerVertical="true"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
</RelativeLayout>
|
|
@ -1,18 +1,29 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/layout"
|
|
||||||
android:background="@drawable/list_selector"
|
android:background="@drawable/list_selector"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="60dp"
|
android:layout_height="60dp"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="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/contact_linphone"
|
||||||
|
android:layout_toStartOf="@+id/contact_linphone"
|
||||||
|
android:layout_alignParentTop="true"
|
||||||
|
android:layout_alignParentBottom="true">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/contact_name"
|
android:id="@+id/contact_name"
|
||||||
style="@style/font6"
|
style="@style/font6"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true" />
|
android:layout_centerVertical="true" />
|
||||||
|
|
||||||
|
@ -20,7 +31,30 @@
|
||||||
android:id="@+id/contact_address"
|
android:id="@+id/contact_address"
|
||||||
style="@style/font2"
|
style="@style/font2"
|
||||||
android:lines="1"
|
android:lines="1"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_centerVertical="true"/>
|
android:layout_centerVertical="true"/>
|
||||||
</LinearLayout>
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/contact_linphone"
|
||||||
|
android:layout_width="30dp"
|
||||||
|
android:layout_height="30dp"
|
||||||
|
android:layout_gravity="right"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:src="@drawable/linphone_user"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_toLeftOf="@+id/contact_is_select"
|
||||||
|
android:layout_toStartOf="@+id/contact_is_select"/>
|
||||||
|
|
||||||
|
<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:paddingRight="20dp"
|
||||||
|
android:src="@drawable/check_unselected"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
<!-- Do not translate any of the strings below -->
|
<!-- Do not translate any of the strings below -->
|
||||||
<bool name="isTablet">false</bool>
|
<bool name="isTablet">false</bool>
|
||||||
|
|
||||||
|
<item type="id" name="contact_search_name" />
|
||||||
<string name="pref_disable_account_key">pref_disable_account_key</string>
|
<string name="pref_disable_account_key">pref_disable_account_key</string>
|
||||||
<string name="pref_extra_accounts">pref_nb_accounts_extra</string>
|
<string name="pref_extra_accounts">pref_nb_accounts_extra</string>
|
||||||
<string name="pref_default_account_key">pref_default_account</string>
|
<string name="pref_default_account_key">pref_default_account</string>
|
||||||
|
|