Skip to content

Instantly share code, notes, and snippets.

@novembergave
Last active January 15, 2017 15:10
Show Gist options
  • Save novembergave/051e0f1ff5ae06501a4c197a8585934b to your computer and use it in GitHub Desktop.
Save novembergave/051e0f1ff5ae06501a4c197a8585934b to your computer and use it in GitHub Desktop.
Udacity Android Basics: User Interface Practice Set 1
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.android.udacitycard.MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/japan" />
<ImageView
android:id="@+id/circle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="0.8"
android:paddingBottom="70dp"
android:paddingTop="100dp"
android:scaleType="centerInside"
android:src="@drawable/circle" />
<TextView
android:id="@+id/japanese"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/circle"
android:layout_centerHorizontal="true"
android:padding="16dp"
android:text="日本が大好きです!"
android:textColor="@android:color/white"
android:textSize="30dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/japanese"
android:layout_centerHorizontal="true"
android:text="I love Japan!"
android:textAllCaps="true"
android:textColor="@android:color/white"
android:textSize="16dp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment