如何在android xml文件中添加滚动条???
任何人都可以向我提供在相对布局中添加它的简单方法。
我多次尝试将它添加到相对和线性布局中。
但是,它不起作用。
请给我解决方案。
谢谢。
最佳答案
引用上面的回答:
如何使用相对布局 W.R.T.滚动浏览
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
... ... ...
</RelativeLayout>
</ScrollView>
关于android - 安卓中的滚动条,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/9060984/