![]() ![]() This works in my case since I only need to rewrite the menu when the width is changed. I ended up adding a condition that only hides the menu when the width is changed, not when the height has changed. I tried to implement the solution suggested by CWitty but since scrolling up or down in fact triggers a height-change that did not work either. I could had started to do browser sniffing and such but I have so far been able to avoid that. Switching to start using onOrientationChange was not an option since this is a responsive site, there is no orientation change on a desktop PC, but I still needed the code to work on both regular PC:s, tablets and smartphones. When resizing the window I want to hide the menus (due to some design elements needing proper positioning) but the Chrome for android behaviour to trigger a resize event on scroll made that somewhat difficult. I encountered this issue in Chrome on android when developing a responsive web site. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.The question has already been answered, but since this question do not bring up the question of responsive sites I would like to add some information on that. For moreĬontent and code samples on this page are subject to the licenses described in the Content License. Of your app's UI don't end up getting covered by system bars. ![]() When you use this approach, it becomes your responsibility to ensure that critical parts SYSTEM_UI_FLAG_LAYOUT_STABLE to help your app maintain a The navigation bar, so that the content doesn't resize as the navigation bar hides and ![]() On Android 4.1 and higher, you can set your application's content to appear behind Make Content Appear Behind the Navigation Bar Navigating away from the view causes flags.Has an effect if the view you call it from is visible. ![]()
0 Comments
Leave a Reply. |