Few changes to the interface for improved Russian localized app
This commit is contained in:
parent
dc74080df5
commit
86df5ee459
15 changed files with 299 additions and 13 deletions
143
res/layout-FR/chat.xml
Normal file
143
res/layout-FR/chat.xml
Normal file
|
@ -0,0 +1,143 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:linphone="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/background"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="10dp"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<org.linphone.ui.AvatarWithShadow
|
||||||
|
android:id="@+id/contactPicture"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
linphone:picture="@drawable/unknown_small" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/contactName"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:textColor="@android:color/black" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:id="@+id/chatScrollView"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dip">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/messages"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp">
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/messageLayout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:background="@drawable/chat_field_background">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sendPicture"
|
||||||
|
android:text="@string/button_send_picture"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@drawable/text_color"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:drawableTop="@drawable/chat_send_picture"
|
||||||
|
android:paddingLeft="5dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sendMessage"
|
||||||
|
android:text="@string/button_send_message"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@drawable/text_color"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:drawableTop="@drawable/chat_send_message"
|
||||||
|
android:paddingRight="5dp" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/message"
|
||||||
|
android:inputType="textMultiLine"
|
||||||
|
android:maxLines="3"
|
||||||
|
android:textColor="@android:color/black"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_toRightOf="@id/sendPicture"
|
||||||
|
android:layout_toLeftOf="@id/sendMessage"
|
||||||
|
android:background="@android:color/transparent"
|
||||||
|
android:padding="20dp"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/uploadLayout"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:background="@drawable/chat_progressbar_background">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:contentDescription="@string/content_description_cancel"
|
||||||
|
android:id="@+id/cancelUpload"
|
||||||
|
android:src="@drawable/chat_stop_upload"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:layout_alignParentRight="true" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBottom="@id/cancelUpload"
|
||||||
|
android:layout_toLeftOf="@id/cancelUpload"
|
||||||
|
android:paddingBottom="20dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/uploading_image"
|
||||||
|
android:textColor="@android:color/black"/>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progressbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||||
|
android:paddingTop="2dp"
|
||||||
|
android:paddingLeft="2dp"
|
||||||
|
android:paddingRight="2dp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
143
res/layout-RU/chat.xml
Normal file
143
res/layout-RU/chat.xml
Normal file
|
@ -0,0 +1,143 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
xmlns:linphone="http://schemas.android.com/apk/res-auto"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@drawable/background"
|
||||||
|
android:orientation="vertical" >
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="10dp"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
|
||||||
|
<org.linphone.ui.AvatarWithShadow
|
||||||
|
android:id="@+id/contactPicture"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
linphone:picture="@drawable/unknown_small" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/contactName"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
||||||
|
android:textColor="@android:color/black" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
<ScrollView
|
||||||
|
android:id="@+id/chatScrollView"
|
||||||
|
android:paddingTop="5dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="0dip">
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/messages"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="10dp"
|
||||||
|
android:paddingRight="10dp">
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</ScrollView>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/messageLayout"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:background="@drawable/chat_field_background">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sendPicture"
|
||||||
|
android:text="@string/button_send_picture"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@drawable/text_color"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentLeft="true"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:drawableTop="@drawable/chat_send_picture"
|
||||||
|
android:paddingLeft="3dp" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/sendMessage"
|
||||||
|
android:text="@string/button_send_message"
|
||||||
|
android:gravity="center"
|
||||||
|
android:textColor="@drawable/text_color"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_centerVertical="true"
|
||||||
|
android:layout_alignParentRight="true"
|
||||||
|
android:drawableTop="@drawable/chat_send_message"
|
||||||
|
android:paddingRight="1dp" />
|
||||||
|
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/message"
|
||||||
|
android:inputType="textMultiLine"
|
||||||
|
android:maxLines="3"
|
||||||
|
android:textColor="@android:color/black"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_toRightOf="@id/sendPicture"
|
||||||
|
android:layout_toLeftOf="@id/sendMessage"
|
||||||
|
android:background="@android:color/transparent"
|
||||||
|
android:padding="20dp"/>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:id="@+id/uploadLayout"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:background="@drawable/chat_progressbar_background">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:contentDescription="@string/content_description_cancel"
|
||||||
|
android:id="@+id/cancelUpload"
|
||||||
|
android:src="@drawable/chat_stop_upload"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:adjustViewBounds="true"
|
||||||
|
android:layout_alignParentRight="true" />
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignBottom="@id/cancelUpload"
|
||||||
|
android:layout_toLeftOf="@id/cancelUpload"
|
||||||
|
android:paddingBottom="20dp"
|
||||||
|
android:orientation="vertical"
|
||||||
|
android:gravity="center">
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:text="@string/uploading_image"
|
||||||
|
android:textColor="@android:color/black"/>
|
||||||
|
|
||||||
|
<ProgressBar
|
||||||
|
android:id="@+id/progressbar"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="15dp"
|
||||||
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
||||||
|
android:paddingTop="2dp"
|
||||||
|
android:paddingLeft="2dp"
|
||||||
|
android:paddingRight="2dp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
</LinearLayout>
|
|
@ -25,6 +25,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_about"
|
android:text="@string/button_about"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -25,6 +25,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_about"
|
android:text="@string/button_about"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -23,6 +23,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_chat"
|
android:text="@string/button_chat"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -24,6 +24,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_contacts"
|
android:text="@string/button_contacts"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -23,6 +23,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_history"
|
android:text="@string/button_history"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -24,6 +24,6 @@
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="5dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_settings"
|
android:text="@string/button_settings"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -25,6 +25,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_about"
|
android:text="@string/button_about"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -25,6 +25,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_about"
|
android:text="@string/button_about"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -23,6 +23,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_chat"
|
android:text="@string/button_chat"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -24,6 +24,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_contacts"
|
android:text="@string/button_contacts"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -23,6 +23,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_history"
|
android:text="@string/button_history"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -24,6 +24,6 @@
|
||||||
android:paddingBottom="10dp"
|
android:paddingBottom="10dp"
|
||||||
android:textColor="@drawable/text_color"
|
android:textColor="@drawable/text_color"
|
||||||
android:text="@string/button_settings"
|
android:text="@string/button_settings"
|
||||||
android:textSize="13dp" />
|
android:textSize="12sp" />
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
|
@ -366,7 +366,7 @@
|
||||||
<string name="button_options">Настройки</string>
|
<string name="button_options">Настройки</string>
|
||||||
|
|
||||||
<string name="button_send_message">Послать</string>
|
<string name="button_send_message">Послать</string>
|
||||||
<string name="button_send_picture">Картинка</string>
|
<string name="button_send_picture">Рис.</string>
|
||||||
<string name="uploading_image">Загружаем…</string>
|
<string name="uploading_image">Загружаем…</string>
|
||||||
|
|
||||||
<string name="call_update_title">Запрошено обновление звонка</string>
|
<string name="call_update_title">Запрошено обновление звонка</string>
|
||||||
|
|
Loading…
Reference in a new issue