Skip to content

Instantly share code, notes, and snippets.

@alexaleluia12
Created March 25, 2018 21:03
Show Gist options
  • Save alexaleluia12/64bf9587e32974a55831f62cb712d02e to your computer and use it in GitHub Desktop.
Save alexaleluia12/64bf9587e32974a55831f62cb712d02e to your computer and use it in GitHub Desktop.
udacity user interface android
<?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"
tools:context="br.com.alexaleluia.happybirthday.MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:src="@drawable/androidparty"
android:scaleType="centerCrop"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Happy Birthday Mari"
android:textSize="36sp"
android:paddingTop="8dp"
android:paddingLeft="16dp"
android:textColor="@android:color/white"
android:layout_alignParentTop="true"
android:fontFamily="sans-serif-light"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:text="From, Alex"
android:textSize="36sp"
android:textColor="#3F51B5"
android:padding="8dp"
android:fontFamily="sans-serif-light"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment