123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:flatui="http://schemas.android.com/apk/res-auto"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@mipmap/chat_bg_default"
- android:orientation="vertical">
- <include
- android:id="@+id/titlebar"
- layout="@layout/titlebar" />
- <!-- 底部按钮以及 编辑框-->
- <LinearLayout
- android:id="@+id/btn_bottom"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:background="@color/graywhite"
- android:orientation="vertical">
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/space_1"
- android:background="@color/gray" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="5dip"
- android:orientation="horizontal">
- <Button
- android:id="@+id/send_voice_btn"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_alignParentLeft="true"
- android:layout_margin="@dimen/space_5"
- android:background="@mipmap/chat_video_btn" />
- <Button
- android:id="@+id/add_file"
- android:layout_width="wrap_content"
- android:layout_height="45dp"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_margin="@dimen/space_5"
- android:layout_weight="2.5"
- android:background="@mipmap/chat_add_other" />
- <Button
- android:id="@+id/choose_face"
- android:layout_width="wrap_content"
- android:layout_height="40dp"
- android:layout_centerVertical="true"
- android:layout_margin="@dimen/space_5"
- android:layout_toLeftOf="@id/add_file"
- android:background="@mipmap/chat_choose_face"
- android:visibility="gone"/>
- <LinearLayout
- android:id="@+id/msg_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_margin="@dimen/space_5"
- android:layout_toLeftOf="@id/choose_face"
- android:layout_toRightOf="@id/send_voice_btn"
- android:orientation="horizontal">
- <EditText
- android:id="@+id/msg"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:layout_weight="1"
- android:singleLine="true"
- android:textSize="18sp" />
- <ImageView
- android:id="@+id/send_msg_btn"
- android:layout_width="match_parent"
- android:layout_height="40dp"
- android:layout_weight="4.5"
- android:background="@drawable/selector_send_msg"
- android:visibility="gone" />
- </LinearLayout>
- </RelativeLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/space_1"
- android:background="@color/gray" />
- <LinearLayout
- android:id="@+id/add_file_layout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/space_20"
- android:visibility="gone"
- android:orientation="horizontal">
- <ImageView
- android:id="@+id/chat_add_pic"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:src="@mipmap/chat_add_pic" />
- <ImageView
- android:id="@+id/chat_add_file"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:src="@mipmap/chat_add_file" />
- <ImageView
- android:id="@+id/chat_add_video"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:src="@mipmap/chat_add_video" />
- </LinearLayout>
- </LinearLayout>
- <!-- 聊天内容 listview-->
- <ListView
- android:id="@+id/messageListview"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_above="@id/btn_bottom"
- android:layout_below="@id/titlebar"
- android:cacheColorHint="#0000"
- android:divider="@null"
- android:dividerHeight="5dp"
- android:scrollbarStyle="outsideOverlay"
- android:stackFromBottom="true" />
- </RelativeLayout>
|