当前位置:网站首页>Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
Coordinatorlayout+nestedscrollview+recyclerview pull up the bottom display is incomplete
2022-07-06 06:09:00 【lichong951】
Borrow a sketch to illustrate :
The layout with incomplete display is as follows :
<?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>
add to live.bingoogolapple.refreshlayout.BGARefreshLayout The display of components is normal
<?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>
As for the reason, we haven't found . I hope to have the opportunity to go deep into the principle and analyze the reason !!!!
边栏推荐
猜你喜欢
【Postman】Monitors 监测API可定时周期运行
异常检测方法总结
【Postman】Collections-运行配置之导入数据文件
Caused by:org.gradle.api.internal.plugins . PluginApplicationException: Failed to apply plugin
Hypothesis testing learning notes
VINS-Mono: A Robust and Versatile Monocular Visual-Inertial State Estimator
Sqlmap tutorial (III) practical skills II
Hongliao Technology: how to quickly improve Tiktok store
曼哈顿距离与曼哈顿矩形-打印回字型矩阵
LeetCode 732. 我的日程安排表 III
随机推荐
How to recover Huawei router's forgotten password
[web security] nodejs prototype chain pollution analysis
Redis6 cluster setup
nodejs实现微博第三方登录
Luogu p1460 [usaco2.1] healthy Holstein cows
[Baiwen smart home] first day of the course_ Learn Embedded and understand the development mode of bare metal and RTOS
The latest 2022 review of "graph classification research"
As3013 fire endurance test of cable distribution system
Testing and debugging of multithreaded applications
[ram IP] introduction and experiment of ram IP core
c语言——冒泡排序
Network protocol model
假设检验学习笔记
H3C S5820V2_5830V2交换机IRF2堆叠后升级方法
Query the standard text code corresponding to a work center (s) in the production order
Caused by:org.gradle.api.internal.plugins . PluginApplicationException: Failed to apply plugin
Basic knowledge of error
[course notes] Compilation Principle
Usage of test macro of GTEST
Luogu [Beginner Level 4] array p1427 number game of small fish