android - auto switch back to low profile mode after seconds delay -
quick question. can dim soft buttons using system_ui_flag_low_profile flag. when click them , stay in "normal profile" ever after. should make them stay hidden again after seconds of idleness?
you can listen changes in system ui
using view.onsystemuivisibilitychangelistener
. , can use handler
postdelayed
runnable rehide again.
@override public void onsystemuivisibilitychange(int visibility) { new handler().postdelayed(new runnable() { @override public void run() { //todo: hide system ui again. } }, 100); }
Comments
Post a Comment