在Android中我可以使用Scrollview吗? [英] Can I More Than One Childe To Scrollview In Android ?

查看:94
本文介绍了在Android中我可以使用Scrollview吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们。

我正在开发一个Android应用程序,

我想在Android中作为Rows在ScrollView Layout中添加一些LinearLayout。

但它说ScrollView只能有一个孩子!!!

如果我想在ScrollView中添加一些元素,如button或LinearLayout或其他东西,应该怎么办?!

解决方案

添加一个布局作为ScrollView的独特子项,然后在子项中添加更多内容(布局)


hi guys .
im developing an android application ,
i want to add some LinearLayout inside of ScrollView Layout dinamicly in android as Rows .
but it says ScrollView can have only one Child !!!
what should id do if i want add some elements like button or LinearLayout or anything to ScrollView ?!

解决方案

Add a Layout as a unique children of ScrollView and then add more things in the child (the Layout)


这篇关于在Android中我可以使用Scrollview吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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