Android Hide Title Bar

We are going to discuss the ways to hide the title bar and to display the content in full-screen mode.
requestWindowFeature(Window.FEATURE_NO_TITLE): It is a method of Activity, which must be coded before the setContentView method. It is called to hide the title.

activity_main.xml:

<?xml version=”1.0″ encoding=”utf-8″?> <android.support.constraint.ConstraintLayout 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”>