-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The view is overlaped by navigation bar in nexus 5. #68
Comments
I had the same problem, and found this issue jfeinstein10/SlidingMenu#680
|
I had similar issue with the navigationbar, I tried some solutions from the merged issue but it fixed the problem only in portrait mode, in landscape mode, when the navigationbar was at right of the screen i had white line and incorrect view. Also I tested my app with Google Nexus 9 tablet(NavigationBar always at the bottom, even in landscape mode) and previous solutions didn't help me. All my activities inherits from the BaseActivity.class, and i set it like this. BaseActivity.class
Also check customized attachToActivity and fitSystemWindows methods in ResideMenu.java ResideMenu.java
Hope it will help someone. |
Wow, yeah you're right... Just because my application was only portrait mode i didn't check for the rest, my bad. But isn't that possible to fix it only by editting fitSystemWindows? |
Hmm... This is the first solution I found.. I'll check if there a way to edit only in ResideMenu.java and update if there is something new. |
Hello,
The method setInsets(Rect insets) is similar to fitSystemWindows(Rect insets) (by romanpozd), but now it is called from a different method in each case. Hope this helps! |
Could you update the repo? |
None of the solutions above works for the Nexus 7 (and probably others). The reason is that the height of the navigation bar is dependent on the device type (smartphone and tablet) as well as on the orientation (landscape and portrait). The following code respects this issues and therefore works also on the Nexus 7.
|
The only way that I've found to know if a device has the software nav bar (other methods with phones like OnePlus will not return the correct value)
|
I created demo project with AppCompat for this library and also solve this issue. |
The Simple solution that is working for me for now is,
|
i have same issue can any one solve this problem ? |
@MohammadAliK Did you try any of the solutions mentioned above? |
No description provided.
The text was updated successfully, but these errors were encountered: