Created
April 9, 2017 20:28
-
-
Save n21cosmin/b0d50febbfe87a0ccb4a80135cd5663d to your computer and use it in GitHub Desktop.
VisitBrasov - Postcard - activity_main.xml - relative layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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=".MainActivity"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:scaleType="centerCrop" | |
android:src="@drawable/brasov1" /> | |
<ImageView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentRight="true" | |
android:src="@drawable/brasov2" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentTop="true" | |
android:layout_alignParentLeft="true" | |
android:padding="20dp" | |
android:fontFamily="serif" | |
android:text="Brasov, The Crown of Transylvania" | |
android:textColor="@android:color/white" | |
android:textSize="34sp" /> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_alignParentBottom="true" | |
android:layout_alignParentLeft="true" | |
android:padding="20dp" | |
android:fontFamily="serif" | |
android:text="Wish you were here!" | |
android:textColor="@android:color/holo_blue_bright" | |
android:textSize="22sp" | |
android:textStyle="bold" /> | |
</RelativeLayout> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment