Skip to content

Instantly share code, notes, and snippets.

@VladSem
Created December 19, 2015 06:12
Show Gist options
  • Save VladSem/749370c1b1d9f3d8b097 to your computer and use it in GitHub Desktop.
Save VladSem/749370c1b1d9f3d8b097 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.vlad.happynewyear.MainActivity">
<ImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/sng2" />
<TextView
android:id="@+id/text1_shadow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="21dp"
android:layout_centerHorizontal="true"
android:text="Happy New Year!"
android:textSize="36sp"
android:fontFamily="sans-serif-medium"
android:textColor="#000000" />
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="20dp"
android:layout_centerHorizontal="true"
android:text="Happy New Year!"
android:textSize="36sp"
android:fontFamily="sans-serif-medium"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/text2_shadow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/text1"
android:layout_centerHorizontal="true"
android:paddingTop="1dp"
android:text="2016"
android:textSize="100sp"
android:fontFamily="sans-serif-medium"
android:textColor="#000000" />
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/text1"
android:layout_centerHorizontal="true"
android:text="2016"
android:textSize="100sp"
android:fontFamily="sans-serif-medium"
android:textColor="@android:color/white" />
<TextView
android:id="@+id/text3_shadow"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:paddingRight="20dp"
android:paddingBottom="19dp"
android:text="from Vlad"
android:textSize="36sp"
android:fontFamily="sans-serif-medium"
android:textColor="#000000" />
<TextView
android:id="@+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
android:padding="20dp"
android:text="from Vlad"
android:textSize="36sp"
android:fontFamily="sans-serif-medium"
android:textColor="@android:color/white" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment