Last active
January 15, 2017 15:10
-
-
Save novembergave/051e0f1ff5ae06501a4c197a8585934b to your computer and use it in GitHub Desktop.
Udacity Android Basics: User Interface Practice Set 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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