react-native-cosser
Version:
环信客服功能
78 lines (71 loc) • 3.06 kB
text/xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingTop="13dp" >
<TextView
android:id="@+id/timestamp"
style="@style/chat_text_date_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:visibility="gone"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/margin_chat_activity" >
<ImageView
android:id="@+id/iv_userhead"
android:layout_width="@dimen/size_avatar"
android:layout_height="@dimen/size_avatar"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginLeft="@dimen/margin_chat_activity"
android:scaleType="fitXY" />
<TextView
android:id="@+id/tv_chatcontent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/margin_chat_activity"
android:layout_toRightOf="@id/iv_userhead"
android:layout_below="@+id/tv_userid"
android:autoLink="web"
android:background="@drawable/hd_chatfrom_bg"
android:clickable="true"
android:focusable="true"
android:gravity="left|center"
android:lineSpacingExtra="2dp"
android:maxWidth="225.0dip"
android:minHeight="50dp"
android:textColor="#ff000000"
android:textSize="15sp" />
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/tv_chatcontent"
android:layout_centerHorizontal="true"
android:background="#fff" >
<Button
android:id="@+id/btn_transfer"
android:layout_width="wrap_content"
android:layout_height="40dip"
android:paddingLeft="20dip"
android:paddingRight="20dip"
android:textSize="16sp"
android:background="@drawable/hd_bg_button_satisfaction"
android:textColor="@android:color/black"
android:text="@string/transfertocs" />
</RelativeLayout>
<TextView
android:id="@+id/tv_userid"
style="@style/chat_text_name_style"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/chat_nick_margin_left"
android:textSize="@dimen/chat_nick_text_size"
android:layout_toRightOf="@id/iv_userhead"
android:visibility="gone" />
</RelativeLayout>
</LinearLayout>