1. 说明

可以滚动的布局控件,子元素只能有一个

2. 使用示例

<ScrollView
            android:fillViewport="true"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
        <LinearLayout android:layout_height="match_parent"
                      android:orientation="vertical"
                      android:layout_width="match_parent">
            <TextView android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:tag="sctest"
                      />
        </LinearLayout>

</ScrollView>

3. 属性说明

3.1. 公有属性

请参考 公有属性

3.2. 私有属性

属性名 说明 可选值
layout_weight 子元素权重 数字
当父级为LinearLayout的时候,子控件可以设置权重
fillViewport 填充所有视图 true: 是 false:否

results matching ""

    No results matching ""