mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
221 lines
No EOL
7.6 KiB
XML
221 lines
No EOL
7.6 KiB
XML
<?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:id="@+id/top_layout"
|
|
android:background="@color/background" >
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:layout_gravity="bottom"
|
|
android:background="@color/colorF"
|
|
android:id="@+id/relativeLayout">
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/back"
|
|
android:contentDescription="@string/content_description_back"
|
|
android:src="@drawable/back"
|
|
android:background="@drawable/toolbar_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentLeft="true"
|
|
android:padding="10dp"
|
|
android:adjustViewBounds="true"/>
|
|
|
|
|
|
<ImageView
|
|
android:id="@+id/edit"
|
|
android:contentDescription="@string/content_description_edit"
|
|
android:layout_alignParentRight="true"
|
|
android:padding="10dp"
|
|
android:src="@drawable/edit_list"
|
|
android:background="@drawable/toolbar_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:adjustViewBounds="true"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/start_call"
|
|
android:contentDescription="@string/content_description_call"
|
|
android:layout_toLeftOf="@id/edit"
|
|
android:padding="10dp"
|
|
android:src="@drawable/call_alt_start"
|
|
android:background="@drawable/toolbar_button"
|
|
android:gravity="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/delete"
|
|
android:contentDescription="@string/content_description_valid"
|
|
android:src="@drawable/delete"
|
|
android:background="@drawable/toolbar_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentRight="true"
|
|
android:padding="10dp"
|
|
android:adjustViewBounds="true"
|
|
android:visibility="gone"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/select_all"
|
|
android:contentDescription="@string/content_description_valid"
|
|
android:src="@drawable/select_all"
|
|
android:background="@drawable/toolbar_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_toLeftOf="@id/delete"
|
|
android:padding="10dp"
|
|
android:adjustViewBounds="true"
|
|
android:visibility="gone"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/deselect_all"
|
|
android:contentDescription="@string/content_description_valid"
|
|
android:src="@drawable/deselect_all"
|
|
android:background="@drawable/toolbar_button"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_toLeftOf="@id/delete"
|
|
android:padding="10dp"
|
|
android:adjustViewBounds="true"
|
|
android:visibility="gone"/>
|
|
|
|
<TextView
|
|
android:id="@+id/contact_name"
|
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
|
android:textColor="@color/text_contrast"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_toRightOf="@id/back"
|
|
android:layout_toLeftOf="@id/start_call"
|
|
android:paddingLeft="10dp"
|
|
android:gravity="center"/>
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/footer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_centerHorizontal="true"
|
|
android:background="@color/colorF">
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/messageLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/sendPicture"
|
|
android:padding="5dp"
|
|
android:scaleType="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:src="@drawable/chat_send_picture" />
|
|
|
|
<ImageView
|
|
android:id="@+id/sendMessage"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:scaleType="center"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/chat_send_message"
|
|
android:layout_alignTop="@+id/message"
|
|
android:layout_alignParentRight="true"/>
|
|
|
|
<EditText
|
|
android:imeOptions="flagNoExtractUi"
|
|
android:textCursorDrawable="@null"
|
|
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="@drawable/resizable_textfield"
|
|
android:layout_centerVertical="true"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/uploadLayout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:contentDescription="@string/content_description_cancel"
|
|
android:id="@+id/cancelUpload"
|
|
android:src="@drawable/clean_field_default"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:adjustViewBounds="true"
|
|
android:layout_alignParentRight="true"
|
|
android:padding="20dp" />
|
|
|
|
<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:id="@+id/progressBarText"
|
|
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>
|
|
|
|
<TextView
|
|
android:id="@+id/remoteComposing"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="@color/text_contrast"
|
|
android:text="@string/remote_composing"
|
|
android:layout_above="@id/footer"/>
|
|
|
|
<ListView
|
|
android:id="@+id/chatMessageList"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="10dp"
|
|
android:divider="@android:color/transparent"
|
|
android:stackFromBottom="true"
|
|
android:transcriptMode="alwaysScroll"
|
|
android:cacheColorHint="@color/transparent"
|
|
android:dividerHeight="10dp"
|
|
android:layout_above="@id/remoteComposing"
|
|
android:layout_below="@+id/relativeLayout"/>
|
|
|
|
</RelativeLayout> |