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

Popular posts from this blog

Write a program to create a first display screen on any search engine using auto complete text View

Write a Program to create a toggle button to display the ON/OFF Bluetooth on the display screen.

Write a program to create a login form for social networking website.