Thursday, 13 July 2017

Code For The Happy Birthday App Final Project Lesson 3


<?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:src="@drawable/happybirthday"        android:layout_width="match_parent"        android:layout_height="match_parent"        android:scaleType="centerCrop"        />
    <TextView        android:text="Happy B'day Bharath"        android:fontFamily="sans-serif-light"        android:layout_width="wrap_content"        android:textColor="#ffffff"
        android:layout_margin="20dp"        android:layout_height="wrap_content"        android:textSize="36sp"/>

    <TextView        android:text="From, Sambhav!"        android:fontFamily="sans-serif-light"        android:layout_width="wrap_content"        android:layout_alignParentBottom="true"        android:layout_alignParentRight="true"        android:layout_margin="20dp"        android:textSize="36sp"        android:textColor="#ffffff"        android:layout_height="wrap_content" />

</RelativeLayout>


No comments:

Post a Comment