Skip to content

Instantly share code, notes, and snippets.

@layerlre
Created December 10, 2014 04:00
Show Gist options
  • Save layerlre/e9a38c757b44e68cb0bc to your computer and use it in GitHub Desktop.
Save layerlre/e9a38c757b44e68cb0bc to your computer and use it in GitHub Desktop.
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<WebView android:id="@+id/webview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/edt_layout"
android:layout_alignParentTop="true"
/>
<LinearLayout
android:id="@+id/edt_layout"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_alignParentBottom="true"
android:weightSum="1">
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:layout_weight="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ส่ง"
android:id="@+id/button"
/>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment