0% found this document useful (0 votes)
17 views9 pages

MAD Program 3

The document contains XML layout code for an Android application interface, specifically for a calling screen. It includes various UI elements such as ImageViews and TextViews arranged in LinearLayouts and RelativeLayouts to display caller information and control options like mute, hold, record, speaker, video call, and dialpad. The layout is designed to be user-friendly with centered elements and a clean white background.

Uploaded by

Gajanan Markad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views9 pages

MAD Program 3

The document contains XML layout code for an Android application interface, specifically for a calling screen. It includes various UI elements such as ImageViews and TextViews arranged in LinearLayouts and RelativeLayouts to display caller information and control options like mute, hold, record, speaker, video call, and dialpad. The layout is designed to be user-friendly with centered elements and a clean white background.

Uploaded by

Gajanan Markad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

<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:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical"
tools:context=".MainActivity">
<ImageView
android:layout_width="100dp"
android:layout_height="100dp"

android:src="@drawable/img"
android:layout_gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Calling via SIM1"
android:textColor="@color/black"
android:layout_gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sakshi Markad"
android:textColor="@color/black"
android:textStyle="bold"
android:textSize="40sp"
android:layout_gravity="center"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mobile 7888******"
android:textColor="@color/black"
android:layout_gravity="center"/>
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:weightSum="3"
android:layout_marginTop="100dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/mute1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Mute"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/hold1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Hold"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/record1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Record" />
</LinearLayout>

</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:orientation="horizontal"
android:weightSum="3"
android:layout_marginTop="75dp"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/speaker1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Speaker"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/videocall1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Video Call"/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_weight="1"
android:gravity="center"
android:layout_height="wrap_content">
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:src="@drawable/dialpad1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/black"
android:text="Dialpad"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:gravity="center"
android:layout_height="match_parent">
<ImageView
android:layout_width="75dp"
android:layout_height="75dp"
android:src="@drawable/baseline_call_end_24"
android:layout_gravity="bottom"
android:layout_marginBottom="75dp"/>
</LinearLayout>
</LinearLayout>

<?xml version="1.0" encoding="utf-8"?>


<RelativeLayout
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:id="@+id/main"
android:layout_width="match_parent"
android:background="@color/white"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:id="@+id/imgperson"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@drawable/img"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"/>
<TextView
android:id="@+id/text1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Calling via SIM1"
android:textSize="20sp"
android:textColor="@color/black"
android:layout_centerHorizontal="true"
android:layout_below="@id/imgperson"/>
<TextView
android:id="@+id/text2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sakshi Markad"
android:textSize="35sp"
android:textStyle="bold"
android:textColor="@color/black"

android:layout_centerHorizontal="true"
android:layout_below="@id/text1"/>
<TextView
android:id="@+id/text3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Mobile 7888******"
android:textSize="20sp"
android:textColor="@color/black"

android:layout_centerHorizontal="true"
android:layout_below="@id/text2"/>
<RelativeLayout
android:id="@+id/rl1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="22dp"
android:layout_below="@+id/text3">
<ImageView
android:id="@+id/mute"
android:layout_width="45dp"
android:layout_height="45dp"
android:src="@drawable/mute1"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/mute"
android:layout_alignParentStart="true"
android:textAlignment="center"
android:layout_marginTop="7dp"
android:text="Mute"
android:textColor="@color/black"

android:layout_below="@+id/mute"
android:textSize="12sp" />

<ImageView
android:id="@+id/hold"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_toStartOf="@+id/record"
android:layout_toEndOf="@+id/mute"
android:src="@drawable/hold1" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/hold"
android:layout_alignEnd="@+id/hold"
android:textAlignment="center"
android:textColor="@color/black"

android:layout_toEndOf="@+id/mute"
android:layout_marginTop="7dp"
android:text="Hold"
android:textSize="12sp" />

<ImageView
android:id="@+id/record"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_alignParentEnd="true"
android:src="@drawable/record1" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/record"
android:layout_alignParentEnd="true"
android:textAlignment="center"
android:layout_marginTop="7dp"
android:text="Record"
android:textColor="@color/black"

android:textSize="12sp" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="60dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="22dp"
android:layout_below="@+id/rl1">
<ImageView
android:id="@+id/videocall"
android:layout_width="45dp"
android:layout_height="45dp"
android:src="@drawable/videocall1"/>

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignEnd="@+id/videocall"
android:layout_alignParentStart="true"
android:textAlignment="center"
android:layout_marginTop="7dp"
android:text="Video Call"
android:textColor="@color/black"

android:layout_below="@+id/videocall"
android:textSize="12sp" />

<ImageView
android:id="@+id/dailpad"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_toStartOf="@+id/speaker"
android:layout_toEndOf="@+id/videocall"
android:src="@drawable/dialpad1" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/dailpad"
android:layout_alignEnd="@+id/dailpad"
android:textAlignment="center"
android:textColor="@color/black"

android:layout_toEndOf="@+id/videocall"
android:layout_marginTop="7dp"
android:text="Dailpad"
android:textSize="12sp" />

<ImageView
android:id="@+id/speaker"
android:layout_width="45dp"
android:layout_height="45dp"
android:layout_alignParentEnd="true"
android:src="@drawable/speaker1" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/speaker"
android:layout_alignStart="@+id/speaker"
android:layout_alignParentEnd="true"
android:layout_marginTop="7dp"
android:text="Speaker"
android:textColor="@color/black"
android:textAlignment="center"
android:textSize="12sp" />
</RelativeLayout>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/baseline_call_end_24"
android:layout_alignParentBottom="true"
android:layout_marginBottom="40dp"
android:layout_centerHorizontal="true">

</ImageView>
</RelativeLayout>

You might also like