在底部导航栏中添加一个侧滑菜单的效果,设置了沉浸式状态栏没有效果,下面看看处理的方法:

效果图:

 

1.在布局中不要设置:android:fitsSystemWindows="true"这行代码,一定要去掉,不然没有效果的

<?xml version="1.0" encoding="utf-8"?>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

2.在清单文件中对应的activity中设置theme:

  
    

 我们的手机状态栏高度一般大约是 20dp   需要的话可以将ToolBar 的距离下移了20dp

感谢:

https://github.com/getActivity/AndroidProject

知识点:

  • 权限请求框架:https://github.com/getActivity/XXPermissions

  • 标题栏:https://github.com/getActivity/TitleBar

  • 吐司工具类:https://github.com/getActivity/ToastUtils

  • 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar

  • 缩放 ImageView:https://github.com/chrisbanes/PhotoView

  • ViewPager 指示器:https://github.com/romandanylyk/PageIndicatorView

  • ButterKnife 注解:https://github.com/JakeWharton/butterknife

  • EventBus 事件:https://github.com/greenrobot/EventBus

  • 内存泄漏捕捉:https://github.com/square/leakcanary

  • 本地异常捕捉:https://github.com/Ereza/CustomActivityOnCrash

 

相关案例:

沉浸式状态栏:

https://github.com/DyncKathline/StatusBarUtil

https://github.com/gyf-dev/ImmersionBar

https://github.com/laobie/StatusBarUtil

https://www.jianshu.com/p/617be02dc265?tdsourcetag=s_pctim_aiomsg

https://github.com/niorgai/StatusBarCompat

https://github.com/xiewenfeng/statusbartextcolorchange

https://github.com/Ye-Miao/StatusBarUtil

 

底部导航:

https://github.com/WakeHao/NavBar

https://github.com/ittianyu/BottomNavigationViewEx

https://github.com/armcha/LuseenBottomNavigation

https://github.com/hitherejoe/BottomNavigationViewSample

https://github.com/yasszu/bottom-navigation

 

侧滑菜单:

https://github.com/yasszu/bottom-navigation

https://github.com/yasszu/bottom-navigation

https://github.com/yasszu/bottom-navigation

https://github.com/yasszu/bottom-navigation

https://github.com/yasszu/bottom-navigation

https://github.com/mxn21/FlowingDrawer

https://github.com/bingoogolapple/BGASwipeBackLayout-Android

https://github.com/keklikhasan/LDrawer

 

 

https://www.androidcup.com/index.php/2019/09/23/ldrawer/

 

更多相关文章

  1. Android(安卓)DrawableTextView图片文字居中显示
  2. android 下滤镜效果的实现
  3. 【Android(安卓)界面效果9】9patch图片
  4. 学习Android动画小结
  5. android 动态菜单组件
  6. Android(安卓)Paint和Color类
  7. Android应用开发之android菜单
  8. Android(安卓)悬浮窗 (附圆形菜单悬浮窗)
  9. Android(安卓)实现圆形的 ImageView 的3种方法

随机推荐

  1. centos LVM(逻辑卷管理)
  2. Android(安卓)NDK开发之旅(5):Android(安
  3. Unity3D之坐标系的转换
  4. 数据结构之哈希表
  5. 基于业务和平台理解数字营销概念
  6. 打卡学习
  7. Plotly中4种文本类型设置详解
  8. 裸辞,杀回一线!
  9. Ansible 之 自动化部署redis主从(单机)
  10. 小鹿又熬肝写了一份 Vue 2.0 核心原理!