<?xml version="1.0" encoding="utf-8"?>
<com.andview.refreshview.XRefreshView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/rv_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color"
android:orientation="vertical">
<com.andview.refreshview.XScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</LinearLayout>
</com.andview.refreshview.XScrollView>
</com.andview.refreshview.XRefreshView>如果想在XRefreshView中嵌套ScrollView,当内容过多时,发现其实ScrollView不能滚动
其实可以使用XScrollView代替ScrollView进行嵌套;
本文介绍了一种在 XRefreshView 中使用 XScrollView 替代 ScrollView 的方法,解决了内容过多时 ScrollView 无法滚动的问题。XScrollView 的用法与 ScrollView 基本相同。
3万+

被折叠的 条评论
为什么被折叠?



