当前位置:网站首页>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 !!!!
边栏推荐
猜你喜欢
随机推荐
wib3.0 跨越,在跨越(ง •̀_•́)ง
The latest 2022 review of "graph classification research"
High quality coding tool clion
C language bubble sort
A complete collection of necessary learning websites for office programmers
Sqlmap tutorial (III) practical skills II
多线程应用的测试与调试
Detailed explanation of BF and KMP
Reading notes of effective managers
Cannot build artifact 'test Web: War expanded' because it is included into a circular depend solution
Accélération de la lecture vidéo de l'entreprise
H3C S5820V2_5830V2交换机IRF2堆叠后升级方法
数字三角形模型 AcWing 1015. 摘花生
Title 1093: character reverse order
IPv6 comprehensive experiment
Dynamic programming -- knapsack problem
Investment strategy discussion and market scale prediction report of China's solid state high power amplifier industry from 2022 to 2028
华为路由器忘记密码怎么恢复
Usage of test macro of GTEST
【Postman】Monitors 监测API可定时周期运行