Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XScrollView can host only one direct child #15

Open
hoysoft opened this issue Aug 26, 2015 · 3 comments
Open

XScrollView can host only one direct child #15

hoysoft opened this issue Aug 26, 2015 · 3 comments

Comments

@hoysoft
Copy link

hoysoft commented Aug 26, 2015

错误: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>
@jinsen47
Copy link

遇到同样的问题

@JaydenHoFly
Copy link

我也遇到了

1 similar comment
@zsyh
Copy link

zsyh commented Oct 8, 2016

我也遇到了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants