Scroll View
<?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"
tools:context=".MainActivity"
android:background="#AACFEC"
>
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<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="About Bangladesh"
android:textSize="35sp"
android:textStyle="bold"
android:textColor="#000000"
android:gravity="center"
android:layout_margin="10dp"
android:background="#FF5722"
/>
<ImageView
android:layout_width="match_parent"
android:layout_height="250dp"
android:src="@drawable/home"
android:layout_margin="10dp"
android:background="#F44336"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Bangladesh is a beautiful Country" android:textSize="20sp"
android:textStyle="bold"
android:textColor="#000000"
android:padding="10dp"
android:gravity="left"
/>
<Button
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="Click"
android:textStyle="bold"
android:textSize="20sp"
android:layout_gravity="center"
android:padding="10dp"
android:layout_marginTop="10dp"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>.png)
.png)
No comments:
Post a Comment