Skip to content

Instantly share code, notes, and snippets.

@VladSem
Created October 31, 2016 06:13
Show Gist options
  • Save VladSem/48cbdeaadffdf7ba589df84e81271dc3 to your computer and use it in GitHub Desktop.
Save VladSem/48cbdeaadffdf7ba589df84e81271dc3 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:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.android.happyhalloween.MainActivity">
<ImageView
android:id="@+id/photo_image_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/halloween" />
<TextView
android:id="@+id/text_view1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="36sp"
android:fontFamily="sans-serif-light"
android:textColor="@android:color/white"
android:padding="20dp"
android:layout_centerHorizontal="true"
android:text="Happy Halloween!" />
<TextView
android:id="@+id/text_view2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="36sp"
android:fontFamily="sans-serif-light"
android:textColor="@android:color/white"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:padding="20dp"
android:text="From, Vlad" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment