Skip to content

Instantly share code, notes, and snippets.

Created April 8, 2015 22:18
Show Gist options
  • Save anonymous/e7eb5ceff9dedfc376eb to your computer and use it in GitHub Desktop.
Save anonymous/e7eb5ceff9dedfc376eb to your computer and use it in GitHub Desktop.
RelativeLayout XML for Udacity quiz question
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp">
<TextView
android:text="I’m in this corner"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true" />
<TextView
android:text="No, up here"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true" />
<TextView
android:text="Wait, I’m here"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" />
<TextView
android:text="Actually, I’m here"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true" />
</RelativeLayout>
@RasAbrish
Copy link

B

@nardosagide
Copy link

i will say B

@AbduTech
Copy link

B

@AshuIMade
Copy link

B

@andenazero
Copy link

b

@NIYOMUSHUMBa12
Copy link

B

@sami-mersha
Copy link

obviously B

@Gebrushet
Copy link

B

@Falmatan
Copy link

B

@Asli5455
Copy link

B

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment