linphone-android/res/layout/chat.xml
2012-07-23 17:51:35 +02:00

80 lines
No EOL
2.7 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="match_parent"
android:paddingTop="20dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_weight="0.4"
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="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.2" >
<RelativeLayout
android:id="@+id/messages"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingLeft="10dp"
android:paddingRight="10dp">
</RelativeLayout>
</ScrollView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.45"
android:gravity="center"
android:orientation="horizontal">
<EditText
android:id="@+id/message"
android:inputType="textMultiLine"
android:textColor="@android:color/black"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.21"
android:background="@drawable/chat_message_background"
android:padding="15dp"/>
<ImageView
android:contentDescription="@string/content_description_send_message"
android:id="@+id/sendMessage"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="0.79"
android:scaleType="fitXY"
android:src="@drawable/chat_send_message" />
</LinearLayout>
</LinearLayout>