如何在Android中启用滚动功能以线性布局? [英] How to enable scrolling functionality to linear layout in android?

查看:189
本文介绍了如何在Android中启用滚动功能以线性布局?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮助我如何为linearlayout启用滚动功能吗?

Can anyone help me how to enable scrolling functionality for linearlayout?

推荐答案

使用ScrollView吗?

Use a ScrollView ?

<LinearLayout android:id="@+id/LinearLayout01"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <ScrollView android:id="@+id/ScrollView01"
                android:layout_width="fill_parent"
                android:layout_height="110px">
    </ScrollView>
</LinearLayout>

这篇关于如何在Android中启用滚动功能以线性布局?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆