Skip to content

Instantly share code, notes, and snippets.

@codeguru42
Created May 15, 2014 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeguru42/7e226d052ad49bc699b9 to your computer and use it in GitHub Desktop.
Save codeguru42/7e226d052ad49bc699b9 to your computer and use it in GitHub Desktop.
Chat Layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="codeguru.thecubeserver.app.ChatFragment">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal">
<EditText
android:id="@+id/chatText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="7"
android:inputType="text"/>
<Button
android:id="@+id/sendButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_toRightOf="@id/chatText"
android:layout_weight="3"
android:text="@string/send"/>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment