You are on page 1of 1

12/30/23, 12:21 PM Printed with github:SGI-CAPP-AT2/code-highlight-n-print

PR05: X. Exercise / 1. Write a program to place Name, Age and mobile number
linearly (Vertical) on the display screen using Linear layout.

MainActivity.java

01package com.example.ac_mad;
02
03import androidx.appcompat.app.AppCompatActivity;
04
05import android.os.Bundle;
06import android.view.View;
07import android.widget.TextView;
08
09public class MainActivity extends AppCompatActivity{
10
11 @Override
12 protected void onCreate(Bundle savedInstanceState) {
13 super.onCreate(savedInstanceState);
14 setContentView(R.layout.activity_main);
15 }
16}

Output

[GUI OUTPUT]

TYCO26 (running on Android API 34)

Formatted & Printed With ShGI/code-highlight-n-print

Printed from API


(i) Original document is edited to get this copy

blob:https://sgi-capp-at2.github.io/534ebf82-51fb-4ac5-910b-ee149e5e3739 1/8

You might also like