Skip to content

Instantly share code, notes, and snippets.

@thmsdnnr
Created January 12, 2018 13:35
Show Gist options
  • Save thmsdnnr/f16a2a98900be3ade9c6baf8abf7787e to your computer and use it in GitHub Desktop.
Save thmsdnnr/f16a2a98900be3ade9c6baf8abf7787e to your computer and use it in GitHub Desktop.
Udacity — Happy Birthday Cat Card
<?xml version="1.0" encoding="utf-8"?>
<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"
android:orientation="vertical"
tools:context="com.thmsdnnr.happybirthday.MainActivity">
<ImageView
android:src="@drawable/cutecat"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop" />
<TextView
android:text="Kind human, may this birthday be"
android:textSize="25sp"
android:textAlignment="center"
android:fontFamily="sans-serif-light"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="20dp"
android:background="@color/colorPrimary75"
android:textColor="#FFFFFF" />
<TextView
android:text="...purrrrrfect."
android:textSize="32sp"
android:fontFamily="sans-serif-light"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_margin="20dp"
android:background="@color/colorPrimary"
android:textColor="#FFFFFF" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment