That will display your name, qualification, contact num, email id and address. All details must have different color. (using XML)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:gravity="center"
android:background="#89898A"
tools:context=".MainActivity">
<TextView
android:id="@+id/name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:text="Name: PK EasyLife"
android:textColor="#E91E63"
android:textSize="28sp" />
<TextView
android:id="@+id/qualification"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="20dp"
android:textSize="28sp"
android:textColor="#FFEB3B"
android:text="Qualificatuion: MCA(Master Of Computer Application)"
/>
<TextView
android:id="@+id/cont"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="28sp"
android:layout_margin="20dp"
android:textColor="#FF5722"
android:text="Contact No.:9087654321"
/>
<TextView
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="28sp"
android:layout_margin="20dp"
android:textColor="#2196F3"
android:text="Email ID: abc123@gmail.com"
/>
<TextView
android:id="@+id/add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="28sp"
android:layout_margin="20dp"
android:textColor="#0FF618"
android:text="Address:Flat333/3, XYZ Tower, ABC, India"
/>
</LinearLayout>

Comments
Post a Comment