1
0

Hide system UI

This commit is contained in:
dump_stack() 2020-02-23 14:19:38 +00:00
parent 42c0b0278e
commit 5dd5152503

View File

@ -3,6 +3,7 @@ package io.dumpstack.minimap;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle; import android.os.Bundle;
import android.view.View;
public class MainActivity extends AppCompatActivity { public class MainActivity extends AppCompatActivity {
@ -14,5 +15,8 @@ public class MainActivity extends AppCompatActivity {
if (getSupportActionBar() != null) { if (getSupportActionBar() != null) {
getSupportActionBar().hide(); getSupportActionBar().hide();
} }
View decorView = getWindow().getDecorView();
decorView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);
} }
} }