Skip to content

Instantly share code, notes, and snippets.

@peshie
Created June 4, 2018 01:33
Show Gist options
  • Save peshie/e9f4cc7d742e9b9c59969c18d802803a to your computer and use it in GitHub Desktop.
Save peshie/e9f4cc7d742e9b9c59969c18d802803a to your computer and use it in GitHub Desktop.
HappyBirthday card
<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>
@peshie
Copy link
Author

peshie commented Jun 4, 2018

Just started that as a newbie, I'll try to upload more as I continue my learning on Udacity

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