当前位置:网站首页>CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
CoordinatorLayout+NestedScrollView+RecyclerView 上拉底部显示不全
2022-07-06 05:59:00 【lichong951】
借用一张效果图示意一下:
显示不全的布局如下:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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" xmlns:tools="http://schemas.android.com/tools" android:background="#FFFFFF">
<android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="#F7F7F7" android:layout_marginTop="71dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" >
....
<android.support.v4.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v7.widget.RecyclerView android:id="@+id/recycle_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dp" android:background="#FFFFFFFF" android:nestedScrollingEnabled="false" android:paddingLeft="20dp" android:paddingRight="20dp" android:layout_marginBottom="30dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:itemCount="40" />
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
....
</android.support.constraint.ConstraintLayout>
添加live.bingoogolapple.refreshlayout.BGARefreshLayout组件之后显示正常了
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout 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" xmlns:tools="http://schemas.android.com/tools" android:background="#FFFFFF">
<android.support.design.widget.CoordinatorLayout android:layout_width="match_parent" android:layout_height="match_parent" android:background="#F7F7F7" android:layout_marginTop="71dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" >
....
<android.support.v4.widget.NestedScrollView android:id="@+id/nestedScrollView" android:layout_width="match_parent" android:layout_height="match_parent" android:fillViewport="true" app:layout_behavior="@string/appbar_scrolling_view_behavior">
<live.bingoogolapple.refreshlayout.BGARefreshLayout android:id="@+id/mRefreshLayout" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="@string/appbar_scrolling_view_behavior">
<android.support.v7.widget.RecyclerView android:id="@+id/recycle_view" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginTop="20dp" android:background="#FFFFFFFF" android:nestedScrollingEnabled="false" android:paddingLeft="20dp" android:paddingRight="20dp" android:layout_marginBottom="30dp" app:layout_behavior="@string/appbar_scrolling_view_behavior" tools:itemCount="40" />
</live.bingoogolapple.refreshlayout.BGARefreshLayout>
</android.support.v4.widget.NestedScrollView>
</android.support.design.widget.CoordinatorLayout>
....
</android.support.constraint.ConstraintLayout>
至于原因暂时没有找到。希望有机会深入原理解析原因!!!!
边栏推荐
- Station B Liu Erden - linear regression and gradient descent
- Seven imperceptible truths in software testing
- A master in the field of software architecture -- Reading Notes of the beauty of Architecture
- Usage of test macro of GTEST
- (5) Explanation of yolo-v3 core source code (3)
- Practice sharing: how to safely and quickly migrate from CentOS to openeuler
- GTSAM中李群的運用
- Query the standard text code corresponding to a work center (s) in the production order
- 公司視頻加速播放
- H3C firewall rbm+vrrp networking configuration
猜你喜欢

Station B, Master Liu Er - dataset and data loading

A master in the field of software architecture -- Reading Notes of the beauty of Architecture

数学三大核心领域概述:代数

Station B, Master Liu Er - back propagation

VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator

Web service connector: Servlet
![Buuctf-[[gwctf 2019] I have a database (xiaoyute detailed explanation)](/img/2c/43ce298794589c5282edda94161d62.jpg)
Buuctf-[[gwctf 2019] I have a database (xiaoyute detailed explanation)

误差的基本知识

IP day 16 VLAN MPLS configuration

Configuring OSPF GR features for Huawei devices
随机推荐
How to use the container reflection method encapsulated by thinkphp5.1 in business code
Linux regularly backs up MySQL database
SQLMAP使用教程(三)实战技巧二
Usage of test macro of GTEST
Embedded point test of app
网络协议模型
Interface test: what are the components of the URL in fiddler
[email protected] raspberry pie
P2802 go home
Application of Lie group in gtsam
Market development prospect and investment risk assessment report of China's humidity sensor industry from 2022 to 2028
Hongliao Technology: Liu qiangdong's "heavy hand"
Significance of unit testing
isam2运行流程
数学三大核心领域概述:几何
A complete collection of necessary learning websites for office programmers
Report on market depth analysis and future trend prediction of China's arsenic trioxide industry from 2022 to 2028
How to recover Huawei router's forgotten password
Network protocol model
Raised a kitten