Skip to content

Instantly share code, notes, and snippets.

@peshie
Last active June 6, 2018 01:59
Show Gist options
  • Save peshie/f290df762c4ceb69bccc35597821aa94 to your computer and use it in GitHub Desktop.
Save peshie/f290df762c4ceb69bccc35597821aa94 to your computer and use it in GitHub Desktop.
Happy Birthday
<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:scaleType="centerCrop"
android:src="@drawable/by" />
<TextView
android:id="@+id/bd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="Happy Birthday, Mary!"
android:textColor="#fff"
android:textSize="30dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@id/by"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="5dp"
android:text="From, Patience!"
android:textColor="#fff"
android:textSize="25sp" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment