mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
122 lines
No EOL
4.4 KiB
XML
122 lines
No EOL
4.4 KiB
XML
<?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">
|
|
|
|
<ImageView
|
|
android:id="@+id/sendPicture"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentLeft="true"
|
|
android:layout_centerVertical="true"
|
|
android:adjustViewBounds="true"
|
|
android:contentDescription="@string/content_description_send_message"
|
|
android:paddingLeft="8dp"
|
|
android:src="@drawable/chat_send_picture" />
|
|
|
|
<ImageView
|
|
android:contentDescription="@string/content_description_send_message"
|
|
android:id="@+id/sendMessage"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerVertical="true"
|
|
android:layout_alignParentRight="true"
|
|
android:adjustViewBounds="true"
|
|
android:src="@drawable/chat_send_message"
|
|
android:paddingRight="15dp" />
|
|
|
|
<EditText
|
|
android:id="@+id/message"
|
|
android:inputType="textShortMessage"
|
|
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" />
|
|
|
|
<ProgressBar
|
|
android:id="@+id/progressbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="15dp"
|
|
android:layout_toLeftOf="@id/cancelUpload"
|
|
android:layout_centerVertical="true"
|
|
style="@android:style/Widget.ProgressBar.Horizontal"
|
|
android:paddingTop="2dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |