当前位置:网站首页>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>
至于原因暂时没有找到。希望有机会深入原理解析原因!!!!
边栏推荐
- Garbage collector with serial, throughput priority and response time priority
- H3C V7版本交换机配置IRF
- wib3.0 跨越,在跨越(ง •̀_•́)ง
- Introduction to promql of # yyds dry goods inventory # Prometheus
- H3C V7 switch configuration IRF
- Li Chuang EDA learning notes 12: common PCB board layout constraint principles
- [Thesis code] SML part code reading
- 公司视频加速播放
- GTSAM中ISAM2和IncrementalFixedLagSmoother说明
- 如何在业务代码中使用 ThinkPHP5.1 封装的容器内反射方法
猜你喜欢
![Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)](/img/c9/56fba6054c91f090de31463a8b4705.jpg)
Buuctf-[bjdctf2020]zjctf, but so (xiaoyute detailed explanation)

Construction of yolox based on paste framework

Detailed explanation of BF and KMP

Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
![[web security] nodejs prototype chain pollution analysis](/img/c5/256ab30e796f0859387585873cee8b.jpg)
[web security] nodejs prototype chain pollution analysis

LTE CSFB process

请求转发与重定向

Request forwarding and redirection

网络协议模型

Winter 2021 pat class B problem solution (C language)
随机推荐
Detailed explanation of BF and KMP
Redistemplate common collection instructions opsforvalue (II)
Station B Liu Erden - linear regression and gradient descent
如何在业务代码中使用 ThinkPHP5.1 封装的容器内反射方法
局域网同一个网段通信过程
Company video accelerated playback
Station B, Master Liu Er - dataset and data loading
Market development prospect and investment risk assessment report of China's humidity sensor industry from 2022 to 2028
Clear floating mode
Dynamic programming -- knapsack problem
[ram IP] introduction and experiment of ram IP core
Commodity price visualization
[email protected] raspberry pie
入侵检测领域数据集总结
Usage of test macro of GTEST
[paper reading] nflowjs: synthetic negative data intensive anomaly detection based on robust learning
Practice sharing: how to safely and quickly migrate from CentOS to openeuler
[Baiwen smart home] first day of the course_ Learn Embedded and understand the development mode of bare metal and RTOS
Hongliao Technology: Liu qiangdong's "heavy hand"
PAT(乙级)2022年夏季考试