PullToRefresh icon indicating copy to clipboard operation
PullToRefresh copied to clipboard

XScrollView can host only one direct child

Open hoysoft opened this issue 10 years ago • 3 comments

错误:ScrollView can host only one direct child

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                xmlns:tools="http://schemas.android.com/tools"
                android:layout_width="match_parent"
                android:layout_height="match_parent">
    <com.Widget.pulltorefresh.XScrollView
                android:id="@+id/xScrollView"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:fillViewport="true"
                android:scrollbars="none" >

        <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="@dimen/x40"
                android:layout_marginRight="@dimen/x40"
                android:orientation="vertical">
            <TextView
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:drawablePadding="@dimen/x20"
                    android:gravity="center_vertical"
                    android:layout_marginTop="@dimen/y50"
                    android:text=" 监控"
                    android:textSize="@dimen/x36"
                    android:textStyle="bold"
                    android:textColor="@color/titlebar_Text_color"/>
        </LinearLayout>
    </com.Widget.pulltorefresh.XScrollView>
</RelativeLayout>

hoysoft avatar Aug 26 '15 01:08 hoysoft

遇到同样的问题

jinsen47 avatar Oct 18 '15 04:10 jinsen47

我也遇到了

JaydenHoFly avatar Nov 09 '15 06:11 JaydenHoFly

我也遇到了

zsyh avatar Oct 08 '16 08:10 zsyh