Android Happy birthday card
<?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"
android:background="#b39ddb">
<ImageView
android:id="@+id/image"
android:src="@drawable/my_pic"
android:layout_width="200dp"
android:layout_height="160dp"
android:paddingTop="16dp"
/>
<TextView
android:id="@+id/name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Rohan singh"
android:textStyle="bold"
android:textColor="@color/black"
android:textSize="24sp"
android:paddingTop="16dp"
android:layout_toRightOf="@id/image"
/>
<TextView
android:id="@+id/student"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="(Student)"
android:textColor="@color/black"
android:textSize="24sp"
android:layout_marginTop="8dp"
android:layout_marginLeft="20dp"
android:layout_toRightOf="@id/image"
android:layout_below="@id/name"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/S"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1. Student"
android:textSize="36sp"
android:layout_below="@id/image"
android:paddingLeft="32dp"
android:paddingTop="56dp"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/status"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Currently I am studying in NIT AGARTALA. I am pursuing ECE(electronics and communication engineering). I am of 2019- 2023 Batch. I love playing cricket,Kabaddi and i am foddie..."
android:layout_below="@id/S"
android:paddingLeft="32dp"
android:textSize="22sp"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/skills"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2. Skills"
android:textSize="36sp"
android:layout_below="@id/status"
android:paddingLeft="32dp"
android:paddingTop="48dp"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/S1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="a. JAVA"
android:textSize="22sp"
android:layout_below="@id/skills"
android:paddingLeft="42dp"
android:layout_marginTop="10dp"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/S2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="b. XML"
android:textSize="22sp"
android:layout_below="@id/S1"
android:paddingLeft="42dp"
android:layout_marginTop="10dp"
/>
<TextView
android:textColor="@color/black"
android:id="@+id/S3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="b. ANDROID APP DEVELOPMENT"
android:textSize="22sp"
android:layout_below="@id/S2"
android:paddingLeft="42dp"
android:layout_marginTop="10dp"
/>
<TextView
android:textColor="@color/black"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Happy Learning...:)"
android:textSize="20sp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="20dp"
android:layout_marginTop="10dp"
android:layout_marginRight="10dp"
/>
</RelativeLayout>
Comments
Post a Comment