android 导航栏透明
2016-01-28 20:48
495 查看
实现类似于天天动听 导航栏透明:
原来主题:
<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>
注意点:
中国有的手机用的是虚拟按键,这样导致该功能在下面按钮会和虚拟按键重叠,,,请注意。
原来主题:
<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>
注意点:
中国有的手机用的是虚拟按键,这样导致该功能在下面按钮会和虚拟按键重叠,,,请注意。
相关文章推荐
- UI_iOS应用状态栏样式设置_及导航栏(NavigationBar)透明
- [iOS]巧妙的让导航栏透明的悬浮在ViewController上
- iOS_做一个透明的导航栏
- 设置导航栏透明
- 透明导航栏
- Android 基础 —— 模拟实现拨打电话功能
- android之浮动title
- Android中自定义一个事件监听器
- Android自定义View
- Android中Relativelayout各个属性
- Android 6.0 inflate过程分析
- Android 5.1编译
- 【第一行代码】Android日志工具
- Android实现边录音边播放
- 【第一行代码】Android项目目录结构
- Android 四大组件 —— 活动(活动的隐式跳转)
- appium+java+cucumber+selenium-webdriver android
- android TextView实现跑马灯效果
- Android学习-----Android Studio 2.0 预览版下载
- 【免翻墙】搭建Android开发环境