当前位置:网站首页>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>
至于原因暂时没有找到。希望有机会深入原理解析原因!!!!
边栏推荐
- Configuring OSPF GR features for Huawei devices
- IPv6 comprehensive experiment
- Usage of test macro of GTEST
- H3C V7版本交换机配置IRF
- Station B Liu Erden softmx classifier and MNIST implementation -structure 9
- 数学三大核心领域概述:代数
- 【LeetCode】Day96-第一个唯一字符&赎金信&字母异位词
- [web security] nodejs prototype chain pollution analysis
- Accélération de la lecture vidéo de l'entreprise
- 查詢生產訂單中某個(些)工作中心對應的標准文本碼
猜你喜欢
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
Report on market depth analysis and future trend prediction of China's arsenic trioxide industry from 2022 to 2028
Download, install and use NVM of node, and related use of node and NRM
The difference and usage between continue and break
网络协议模型
IPv6 comprehensive experiment
Application of Lie group in gtsam
误差的基本知识
P问题、NP问题、NPC问题、NP-hard问题详解
[Baiwen smart home] first day of the course_ Learn Embedded and understand the development mode of bare metal and RTOS
随机推荐
Eigen稀疏矩阵操作
GTSAM中李群的运用
Linux regularly backs up MySQL database
Configuring OSPF GR features for Huawei devices
IPv6 comprehensive experiment
The difference and usage between continue and break
A complete collection of necessary learning websites for office programmers
Query the standard text code corresponding to a work center (s) in the production order
Baidu online AI competition - image processing challenge: the 8th program of handwriting erasure
Leetcode 701 insertion operation in binary search tree -- recursive method and iterative method
HCIA review
Mysql database master-slave cluster construction
【论文阅读】NFlowJS:基于鲁棒学习的合成负数据密集异常检测
查詢生產訂單中某個(些)工作中心對應的標准文本碼
GTSAM中ISAM2和IncrementalFixedLagSmoother说明
ContentType的作用
Title 1093: character reverse order
入侵检测领域数据集总结
数字三角形模型 AcWing 1015. 摘花生
实践分享:如何安全快速地从 Centos迁移到openEuler