Created
June 4, 2018 01:33
-
-
Save peshie/e9f4cc7d742e9b9c59969c18d802803a to your computer and use it in GitHub Desktop.
HappyBirthday card
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
<RelativeLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<ImageView | |
android:id="@+id/by" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:src="@drawable/by" | |
android:scaleType="centerCrop" | |
/> | |
<TextView | |
android:id="@+id/bd" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="Happy Birthday, Mary!" | |
android:textSize="30dp" | |
android:layout_margin="8dp" | |
android:textColor="#fff" | |
/> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="From, Patience!" | |
android:layout_alignBottom="@id/by" | |
android:textColor="#fff" | |
android:layout_alignParentRight="true" | |
android:layout_margin="5dp" | |
android:textSize="25sp" | |
android:layout_alignParentBottom="true" | |
/> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just started that as a newbie, I'll try to upload more as I continue my learning on Udacity