How do i remove the navigation in android studio?

How do i hide or remove the navigation at the top of my android studio? just like in the shown below picture?

enter image description here

here is my .xml

<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@color/colorPrimary">          <TextView         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_below="@+id/imgLogo"         android:layout_marginBottom="10dp"         android:gravity="center_horizontal"         android:padding="10dp"         android:text="@string/app_name"         android:textAlignment="center"         android:id="@+id/appName"         android:textColor="#ffffff"         android:textSize="20sp" />      </RelativeLayout> 
Add Comment
1 Answer(s)

If it’s your newly created project

In your styles.xml change parent theme from

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">     <!--style goes here--> </style> 

to

<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">     <!--style goes here--> </style> 
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.