macroquad
macroquad copied to clipboard
Full screen on android still show status bar
The Android status bar is still show in fullscreen. ~~It does not even make an different on Android if fullscreen: true is set.~~
~~Adding fullscreen = true to the cargo.toml has also no effect.~~
Exist an option to disable the bar?
[package.metadata.android]
fullscreen = true
[package.metadata.android.activity_attributes]
"android:exported" = "true"
source
use macroquad::prelude::*;
fn window_conf() -> Conf {
Conf {
window_title: env!("CARGO_PKG_NAME").to_owned(),
fullscreen: true,
..Default::default()
}
}
#[macroquad::main(window_conf)]
async fn main() {
loop {
clear_background(RED);
draw_line(40.0, 40.0, 100.0, 200.0, 15.0, BLUE);
draw_rectangle(screen_width() / 2.0 - 60.0, 100.0, 120.0, 60.0, GREEN);
draw_circle(screen_width() - 30.0, screen_height() - 30.0, 15.0, YELLOW);
draw_text("IT WORKS!", 20.0, 20.0, 30.0, DARKGRAY);
next_frame().await
}
}
Sony Xperia 10 III (XQ-BT52) (Android 13)
Apparently I have accidentally build the debug version and flash the release version to my phone :facepalm: . The topbar is now disable by the cargo.toml. But the lower buttons are still visible. Can I also disable them?