Setsystemuivisibility () Popupwindow and view's first click event is lost

Source: Internet
Author: User

When you set setsystemuivisibility () in view, the first time a view's Click event is lost, the solution:

Setonsystemuivisibilitychangelistener (new  Onsystemuivisibilitychangelistener () {        @Override         publicvoid onsystemuivisibilitychange (int  visibility) {            if ( (Visibility & system_ui_flag_hide_navigation) = = 0)                {//  show my app view             }        }   });

Reason: Probably call setsystemuivisibility after showing the view has no focus event, can not interact with the interface, the first click is to get the focus, can interact

So need early listener inside manual This UI view, in order to interact, for specific reasons do not see the official source code and its documentation, if wrong to correct, thank you!

Setsystemuivisibility () Popupwindow and view's first click event is lost

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.