Skip to content

Instantly share code, notes, and snippets.

@irrationnelle
Created January 9, 2017 06:23
Show Gist options
  • Save irrationnelle/163e3a38694d78eefe502b840c21f46b to your computer and use it in GitHub Desktop.
Save irrationnelle/163e3a38694d78eefe502b840c21f46b to your computer and use it in GitHub Desktop.
activity_main_mission
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/android"
android:id="@+id/unnamed"
android:layout_above="@id/linear_layout"
android:layout_below="@id/relative_layout"/>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/relative_layout"
android:layout_alignParentTop="true">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GO"
android:id="@+id/go_button"
android:layout_alignParentRight="true"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/edit_address"
android:inputType="text"
android:hint="www.naver.com"
android:layout_toLeftOf="@id/go_button"/>
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/linear_layout"
android:layout_alignParentBottom="true">
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Add"
android:layout_below="@id/unnamed"
android:id="@+id/button_add"/>
<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Submit"
android:layout_below="@id/button_add"/>
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment