Skip to content

Instantly share code, notes, and snippets.

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