当前位置:网站首页>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>
至于原因暂时没有找到。希望有机会深入原理解析原因!!!!
边栏推荐
- Novice entry SCM must understand those things
- 2022 software testing workflow to know
- 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
- GTSAM中李群的运用
- Introduction to promql of # yyds dry goods inventory # Prometheus
- Analysis report on development trends and investment planning of China's methanol industry from 2022 to 2028
- Significance of unit testing
- How to recover Huawei router's forgotten password
- 【论文代码】SML部分代码阅读
- Embedded interview questions (I: process and thread)
猜你喜欢
IP day 16 VLAN MPLS configuration
Database: ODBC remote access SQL Server2008 in oracel
Expose the serial fraudster Liu Qing in the currency circle, and default hundreds of millions of Cheng Laolai
Caused by:org.gradle.api.internal.plugins . PluginApplicationException: Failed to apply plugin
LAN communication process in the same network segment
J'ai un chaton.
[ram IP] introduction and experiment of ram IP core
Garbage collector with serial, throughput priority and response time priority
功能安全之故障(fault),错误(error),失效(failure)
假设检验学习笔记
随机推荐
A complete collection of necessary learning websites for office programmers
Zoom through the mouse wheel
公司視頻加速播放
Seven imperceptible truths in software testing
Function of contenttype
【C语言】字符串左旋
Huawei BFD configuration specification
Embedded point test of app
H3C firewall rbm+vrrp networking configuration
Winter 2021 pat class B problem solution (C language)
《卓有成效的管理者》读书笔记
properties文件
Is it difficult for an information system project manager?
Expose the serial fraudster Liu Qing in the currency circle, and default hundreds of millions of Cheng Laolai
HCIA review
Application du Groupe Li dans gtsam
Wib3.0 leapfrogging, in leapfrogging (ง • ̀_•́) ง
Bit operation rules
Embedded interview questions (IV. common algorithms)
Demander le Code de texte standard correspondant à un centre de travail dans l'ordre de production