Class 2 (Single Page app UI Design)

 




<?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"
>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Beauiy of Bangladesh"
android:textSize="30sp"
android:textStyle="bold"
android:textColor="#000000"
android:gravity="center"
/>

<ImageView
android:layout_width="match_parent"
android:layout_height="250dp"
android:src="@drawable/image"
android:layout_margin="10dp"
/>

<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Bangladesh is a small and beautiful country in South Asia. We got independence in 1971 from Pakistan after a long war."
android:textSize="25sp"
android:textStyle="bold"
android:textColor="#000000"
android:gravity="left"
android:layout_margin="10dp"
/>


<Button
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Click Here to Know More"
android:textSize="15sp"
android:textStyle="bold"
android:textColor="#FFFFFF"
android:layout_margin="20dp"
/>




</LinearLayout>

</LinearLayout>



No comments: