Android中的ScrollView

来源:互联网 发布:程序员女神 赵洁琼 编辑:程序博客网 时间:2024/06/09 22:43

ScrollView节点下只能有一个子节点

当需要有多个子节点时可以用一个layout节点将其他节点包起来

<LinearLayoutandroid:layout_width="match_parent"android:layout_height="wrap_content"android:orientation="vertical">    <TextView>    android:layout_width="match_parent"    android:layout_height="wrap_content"    android:id="@+id/tv_show"    />    <Button    android:layout_width="wrap_content"    android:layout_height="wrap_content"    android:id="@+id/btn"    android:text="show"    /></LinearLayout>
0 0