Skip to main content

Create My Info Android application.

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

Popular posts from this blog

How To Hack Chrome Dinosaur Game

How to hack Chrome Dinosaur Advance Video What is Chrome Dinosaur Game?     Chrome Dinosaur game is also known as T-REX game. It is a simple infinite runner up game. Which is control by using Space key to jump and to start game also And press down arrow to duck.    When we get Chrome Dinosaur Game?     By default, When we try to search something without Internet or when our Wi-Fi or internet service are shut down. At that time google Chrome redirect us at the chrome Dino game.     You can also play it when your device is connected with internet. You can Open it by just typing chrome://dino in your URL bar.                                                   ...

Find missing number from array range C, C++

Missing number between array's lowest value and highest value elements in C.             #include <stdio.h> int main ( ) { int arr [ 5 ] = { 2 , 5 , 20 , 18 , 15 } ; int min = arr [ 0 ] , max = arr [ 0 ] , i , j , flag = 0 ; for ( i = 0 ; i < 5 ; i ++ ) { if ( arr [ i ] > max ) { max = arr [ i ] ; //find max value } if ( arr [ i ] < min ) { min = arr [ i ] ; //find min value } } for ( i = min ; i < max ; i ++ ) { for ( j = 0 ; j < 5 ; j ++ ) { if ( i == arr [ j ] ) { flag = 1 ; break ; } else { flag = 0 ; } } if ( flag == 0 ) { printf ( "%d " , i ) ; } } return 0 ; }       ...

Android Hello World Application

"Hello World" application. That will display "Hello World" in the middle of the screen in the red color with white background. Now Here We will create a android application that will display "Hello world" in the middle of the screen. Create a Hello Application with empty activity. and Write below mentioned code in your " activity_main.xml" file. <? 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 :gravity ="center" android :background ="#ffffff" tools :context =".MainActivity" > < TextView android :layout_wi...