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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -