Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide Android status bar in native game written with gomobile

How to hide Android status bar in native game written with gomobile?

I am experimenting with a simple native Android game written in pure Go using the gomobile tool. It should be able to use the full screen for rendering frames. However I could not find an API to hide the status bar from the native app.

Has anyone tackled this issue? If so, please share the directions.

like image 839
Everton Avatar asked Aug 11 '17 03:08

Everton


People also ask

How can I customize my Android Status bar?

To customize it, first pull down the slider bar from the top of the screen. Next, tap on the three vertical dots in the top right corner. Now click on Status bar. You're in.

What is Android Status bar?

On Android, the status bar contains notification icons and system icons.


1 Answers

Create a Empty Activity . Go and find

android:theme="" on Activity XML Files

Set it to @style/Theme.AppCompat.NoActionBar

Pro Tip :

dont know other people but I always delete

Menu/Menu_Activity.Xml 

That Contains Menu XML files !

Also Remove Menu.OnClick Codes Located on The Class of Your Activity

Update :

Emm ... did you change :

public class Setup extends ActionBarActivity {

to

public class Setup extends Activity {

???

like image 50
Azrideus Avatar answered Sep 28 '22 11:09

Azrideus