My first Aps code

Actvity_main.xml

Input

<?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"
tools:context=".MainActivity"
android:orientation="vertical"
android:layout_margin="20dp"

>

<TextView
android:id="@+id/text_view_id"
android:layout_width="348dp"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:gravity="center"
android:padding="10dp"
android:text="BEAUTY OF BANGLADESH"
android:textAlignment="center"
android:textColor="#000000"
android:textStyle="bold"
/>
<ImageView
android:layout_width="match_parent"
android:layout_height="200dp"
android:src="@drawable/natural"
/>
<TextView
android:id="@+id/text_view_id"
android:layout_width="348dp"
android:layout_height="wrap_content"
android:layout_margin="10sp"
android:gravity="left"
android:padding="10dp"
android:text="Bangladesh is a growing economy, thus supporting Business Traveler became a new trend here. DESHGHURI is at the top of MICE Company in Bangladesh. We are not only the MICE service provider in Dhaka but also throughout Bangladesh. "
android:textSize="20sp"
android:textColor="#000000"
android:textStyle="bold"
/>

<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="thank you to visit the apps"
/>





</LinearLayout>

OUTPUT

Comments