android - recyclerview 中的nestedscrollview 花费大量时间来显示数据
问题描述
<android.support.v4.widget.NestedScrollView
android:id="@+id/nestedScrollView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:overScrollMode="never">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</android.support.v4.widget.NestedScrollView>
我在另一个 recyclerview 中使用 recycleview 创建了一个自定义日历。它工作正常滚动不平滑所以我在stackoverflow中搜索更改为上面的代码现在滚动平滑但是如果打开该活动它需要很长时间来显示我测试过的数据我将需要15秒来显示数据
解决方案
推荐阅读
- image - IIS - 在 html 中服务器图像放置拒绝直接 url 访问
- java - Android 应用程序错误没有为片段的 id(..) 找到视图
- sql - SQL 查询 - 重复结果 5 次,删除结果集的每个信誉的第一行
- python - 在 python 中的 Flask 和 Web Socket 中出现“无法腌制本地对象”错误
- java - 用spring数据点燃jpa使用语法IN
- html - SVG在旋转时移动位置
- optimization - 使用 CVXOPT 的最小交易规模 - 摆脱可忽略不计的权重
- reactjs - 如何将 React Web 应用程序部署到 Fiori Launchpad?
- json - 当请求变量是动态的时,无法解析 reqbody json 对象
- python - 从 tkinter 列表框中获取对象