Last active
May 11, 2018 06:16
-
-
Save leesc22/4288df711ecc6f2603976facb1c45b47 to your computer and use it in GitHub Desktop.
Udacity Android Basics UI Practice Set
This file contains hidden or 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"?> | |
<!-- Business Card --> | |
<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" | |
tools:context=".BusinessCardActivity"> | |
<ImageView | |
android:id="@+id/business_image_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_alignParentTop="true" | |
android:scaleType="centerCrop" | |
android:src="@drawable/androiddev" /> | |
<TextView | |
android:id="@+id/name_text_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/business_image_view" | |
android:fontFamily="sans-serif-light" | |
android:padding="20dp" | |
android:text="LeeSC" | |
android:textSize="36sp" /> | |
<TextView | |
android:id="@+id/link_text_view" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/name_text_view" | |
android:padding="20dp" | |
android:textSize="20sp" | |
android:text="https://github.com/leesc22" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:layout_below="@id/link_text_view" | |
android:padding="20dp" | |
android:textSize="24sp" | |
android:text="Newbie in android app development" /> | |
</RelativeLayout> |
This file contains hidden or 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"?> | |
<!-- Happy Birthday Card --> | |
<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" | |
tools:context=".MainActivity"> | |
<ImageView | |
android:id="@+id/imageView" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="centerCrop" | |
android:src="@drawable/androidparty" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:textSize="36sp" | |
android:fontFamily="sans-serif-light" | |
android:textColor="@android:color/white" | |
android:padding="20dp" | |
android:text="Happy Birthday Yen!" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentRight="true" | |
android:layout_alignParentBottom="true" | |
android:textSize="36sp" | |
android:fontFamily="sans-serif-light" | |
android:textColor="@android:color/white" | |
android:padding="20dp" | |
android:text="From, Jie" /> | |
</RelativeLayout> |
This file contains hidden or 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"?> | |
<!-- Ramadhan Card --> | |
<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" | |
tools:context=".RamadhanCardActivity"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:layout_alignParentStart="true" | |
android:layout_alignParentTop="true" | |
android:scaleType="fitXY" | |
android:src="@drawable/ramadhan" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentEnd="true" | |
android:textSize="36sp" | |
android:textStyle="bold" | |
android:fontFamily="sans-serif-light" | |
android:textColor="@android:color/white" | |
android:padding="20dp" | |
android:layout_marginLeft="150dp" | |
android:layout_marginBottom="50dp" | |
android:text="Selamat Menyambut Ramadhan Al-Mubarak" /> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment