Android开发-ScrollView简单实现滚动-AndroidStudio

唯一需要注意的是,ScrollView中间只能有一个控件,所以需要用LinearLayout把你的东西都包进去。

<ScrollView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

中间放你的东西就好了。

    </LinearLayout>
</ScrollView>

原文地址:https://blog.csdn.net/iwanghang/article/details/52604765


猜你喜欢

转载自blog.csdn.net/qq_36408196/article/details/80287662