layout_input.xml 2.2 KB
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:emojicon="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="48dp"
    android:background="@android:color/white">

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="1px"
        android:background="@color/main_tab_spinner_line_color" />

    <ImageView
        android:id="@+id/emoticons_button"
        android:layout_width="30dp"
        android:layout_height="30dp"
        android:layout_centerVertical="true"
        android:layout_marginLeft="8dp"
        android:src="@drawable/expression_face_selector" />


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="30dp"
        android:layout_centerVertical="true"
        android:layout_marginLeft="8dp"
        android:layout_toLeftOf="@+id/post_button"
        android:layout_toRightOf="@+id/emoticons_button"
        android:background="@drawable/edit_text"
        android:orientation="horizontal">


        <EditText
            android:id="@+id/chat_content"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:background="@null"
            android:gravity="center_vertical"
            android:hint="@string/input_button_text"
            android:imeOptions="actionSend"
            android:inputType="textLongMessage"
            android:maxLength="120"
            android:paddingLeft="8dp"
            android:textColor="@color/text_input_color"
            android:textColorHint="@color/text_hint_color"
            android:textSize="16sp"
          />
    </LinearLayout>


    <TextView
        android:id="@+id/post_button"
        android:layout_width="50dp"
        android:layout_height="30dp"
        android:layout_alignParentRight="true"
        android:layout_centerVertical="true"
        android:layout_marginLeft="8dp"
        android:layout_marginRight="8dp"
        android:background="@drawable/btn_send_chat_selector"
        android:gravity="center"
        android:text="发送"
        android:textColor="@color/chat_send_text"
        android:textSize="16sp" />

</RelativeLayout>