android.support.design.widget.AppBarLayout 在android5.0+底部显示空白条问题
2016-05-10 22:09
211 查看
在最外层使用
RelativeLayout作为根节点,同时设置
android:fitsSystemWindows="true" 问题解决.
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/white" android:fitsSystemWindows="true"> <android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent"> <!--标题栏 Toolbar--> <android.support.design.widget.AppBarLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar" android:layout_width="match_parent" android:minHeight="48dp" android:layout_height="48dp" android:background="?attr/colorPrimary" app:popupTheme="@style/AppTheme" /> </android.support.design.widget.AppBarLayout>
相关文章推荐
- Cocos2dx3.10常侍之移驾UBUNTU
- Android View系列一: View基础知识
- unity+Cardboard SDK VR开发Cardboard Unity SDK讲解
- Android中的通知 Notification
- Android的Handler,Looper消息机制问题
- iOS学习——几种数据持久化方法
- android studio 学习笔记之 全面进阶配置技巧
- 【Android】自定义View —— 滑动的次数选择器
- iOS开发小技巧--设置按钮圆角
- unity+Cardboard SDK VR开发教程
- ExpandableListView二级分栏详解完美用法
- 微信红包接龙的数学分析
- Hibernate 5.X 版本中Exception in thread "main" org.hibernate.MappingException: Unknown entity: cn.xxx.p
- Android View的事件分发
- Android——tabHost的使用注意点
- android:screenOrientation属性详解
- iOS不得姐项目--登录模块的布局,设置文本框占位文字颜色,自定义内部控件竖直排列的按钮
- Exception raised during rendering: Could not initialize class android.widget.TextView Exception deta
- Android自定义Toast带图片的
- 数字对象、字符串(16.5.10)