Status bar transparency at runtime
Once an activity has a view (set via setContentView
for example), it's no longer possible to call requestFeature
. Using addFlags
on the Window
attached to the activity can do the trick:
// To make the navigation bar transparent
window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
// To make the bar's height "eaten" by the underlying element
window.addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
To restore the original state, it is possible to call clearFlags
on the same window object.
Uninstall Android Studio (macOS)
$ rm -rf ~/Library/Preferences/AndroidStudio*
$ rm -rf ~/Library/Application\ Support/AndroidStudio*
$ rm -rf ~/Library/Logs/AndroidStudio*
$ rm -rf ~/Library/Caches/AndroidStudio*
$ rm ~/.emulator_console_auth_token
# Emulators
$ rm -rf ~/.android/avd
# SDKs
$ rm -Rf ~/Library/Android*
# Plist files
$ rm -rf ~/Library/Preferences/com.google.android.*
$ rm -rf ~/Library/Preferences/com.android.*