Create the below form using Frame Layout.
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"
>
<TextView
android:text="Computer Dept"
android:textSize="30dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:gravity="center"
android:layout_gravity="top" />
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:src="@drawable/welcome"
/>
<Button
android:text="Grade"
android:textSize="20dp"
android:textStyle="bold"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="right|bottom"
/>
</FrameLayout>
Output:
Comments
Post a Comment