How do I hide the navigation bar in the editor for android studio?


How do I hide the navigation bar in the editor for android studio?



How do I make the bottom navigation bar disappear in the visual XML editor in Android Studio? I added a screenshot of the navigation bar which I want to remove.



I have looked at both of these and they were no help to me.
How to hide navigation bar permanently in android activity?
How to emulate immersive mode in layout editor



Here is the screenshot of the Navigation bar: https://imgur.com/gallery/GlmDsIs



Here is my XML Code for activity_main:


<?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"
android:background="#474747"
tools:context=".MainActivity">

<EditText
android:id="@+id/typeMessage"
android:layout_width="354dp"
android:layout_height="61dp"
android:layout_marginTop="504dp"
android:background="#595858"
android:ems="10"
android:hint="Type..."
android:inputType="text"
android:padding="10dp"
android:textColorHint="#969494"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<ImageView
android:id="@+id/imageView2"
android:layout_width="60dp"
android:layout_height="59dp"
android:layout_marginEnd="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="504dp"
app:layout_constraintEnd_toEndOf="@+id/typeMessage"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@android:drawable/ic_menu_send" />

<EditText
android:id="@+id/messageOutput"
android:layout_width="354dp"
android:layout_height="480dp"
android:background="#595858"
android:ems="10"
android:inputType="textMultiLine"
app:layout_constraintBottom_toTopOf="@+id/typeMessage"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>



Here is my code for MainActivity.java:


import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}



Thank you for your help!





I think this may be what you're looking for: stackoverflow.com/questions/21724420/…
– Nick
Jun 30 at 3:24





See stackoverflow.com/questions/23291890/…
– Tyler V
Jun 30 at 3:28










By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

how to run turtle graphics in Colaboratory

Export result set on Dbeaver to CSV