实现类似于天天动听 导航栏透明:
原来主题:
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. --><item name="android:windowNoTitle">true</item>
</style>
增加后:
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. --><item name="android:windowNoTitle">true</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
注意点:
中国有的手机用的是虚拟按键,这样导致该功能在下面按钮会和虚拟按键重叠,,,请注意。