zoukankan      html  css  js  c++  java
  • android.support.design.widget.AppBarLayout 在android5.0+底部显示空白条问题

    在最外层使用
    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>
  • 相关阅读:
    属性绑定与双向数据绑定
    vue基础
    tp5提交留言入库
    tp5表单提交
    TP5分页
    TP5模板与数据组合
    vue3.x使用Proxy做双向数据绑定总结
    vue2.x响应式原理总结
    HTML5移动端自适应解决方案
    springMVC实现文件上传
  • 原文地址:https://www.cnblogs.com/yshyee/p/5479629.html
Copyright © 2011-2022 走看看