4 years ago (2016-08-12)  Algorithm language |   First to comment  58 
post score 0 times, average 0.0

Some Android phones now have navigation bars at the bottom of the virtual buttons. This design removes physical buttons and further increases the screen share of smartphones.But this sometimes brings some compatibility issues. To prevent the navigation bar from covering the layout, add the "fitSystemWindows=true" attribute to the layout. If you want to listen to the navigation bar hidden and displayed, we can add an empty layout with "match_parent" width and height under the root node of the layout file, add the "fitSystemWindows=true" attribute to the layout, and then listen to the layout. onLayoutChange event, you can listen to the navigation bar.


This article has been printed on copyright and is protected by copyright laws. It must not be reproduced without permission.If you need to reprint, please contact the author or visit the copyright to obtain the authorization. If you feel that this article is useful to you, you can click the "Sponsoring Author" below to call the author!

Reprinted Note Source: Baiyuan's Blog>>https://wangbaiyuan.cn/en/android-monitor-navigation-bar-at-bottom-of-expansion-hidden-2.html

Post comment


No Comment


Forget password?