Create the below form using Frame Layout.
Code:
<?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">
<ImageView
android:src="@drawable/black"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:text="GOOD MORNING"
android:textStyle="bold"
android:textSize="40dp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textColor="#ffff"
android:layout_gravity="center" />
</FrameLayout>
Output:
Comments
Post a Comment