Advertisement
olcayertas

Apache Mina Chat Client Layout

Jan 1st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.24 KB | None | 0 0
  1. <RelativeLayout
  2.    tools:context="com.mukcay.server.ServerActivity"
  3.    tools:ignore="MergeRootFrame"
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:tools="http://schemas.android.com/tools"
  6.    android:id="@+id/relativeLayout"
  7.    android:layout_width="match_parent"
  8.    android:layout_height="match_parent">
  9.  
  10.     <Button
  11.        android:layout_width="match_parent"
  12.        android:layout_height="wrap_content"
  13.        android:id="@+id/connectToServerButton"
  14.        android:layout_gravity="center_horizontal|top"
  15.        android:onClick="connectToServerButtonClicked"
  16.        android:layout_margin="10dp"
  17.        android:text="Connect" />
  18.  
  19.     <EditText
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"
  22.        android:inputType="textMultiLine"
  23.        android:ems="10"
  24.        android:id="@+id/messageBoard"
  25.        android:layout_alignParentRight="true"
  26.        android:background="#d6d6d6"
  27.        android:layout_below="@+id/connectToServerButton"
  28.        android:layout_alignParentLeft="true"
  29.        android:layout_marginLeft="10dp"
  30.        android:layout_marginRight="10dp"
  31.        android:layout_marginTop="10dp"
  32.        android:layout_above="@+id/linearLayout"
  33.        android:textColor="#020202"
  34.        android:textAlignment="gravity" />
  35.  
  36.     <LinearLayout
  37.        android:orientation="horizontal"
  38.        android:layout_width="fill_parent"
  39.        android:layout_height="50dp"
  40.        android:layout_alignParentBottom="true"
  41.        android:layout_alignParentLeft="true"
  42.        android:id="@+id/linearLayout"
  43.        android:layout_margin="10dp" >
  44.  
  45.         <EditText
  46.            android:layout_width="0dp"
  47.            android:layout_height="match_parent"
  48.            android:id="@+id/message"
  49.            android:layout_weight="1"
  50.            android:inputType="text" />
  51.  
  52.         <Button
  53.            style="@style/AppTheme"
  54.            android:layout_width="wrap_content"
  55.            android:layout_height="wrap_content"
  56.            android:layout_gravity="center_horizontal|top"
  57.            android:onClick="sendMessageButtonClicked"
  58.            android:id="@+id/sendMessageButton"
  59.            android:text="Send" />
  60.     </LinearLayout>
  61. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement