首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >在LinearList对象上使用setOrientation方法

在LinearList对象上使用setOrientation方法
EN

Stack Overflow用户
提问于 2011-03-15 09:15:16
回答 1查看 26.9K关注 0票数 16

LinearLayout的setOrientation方法不会接受垂直参数,这与android参考资料中的以下内容相反

public void setOrientation (int orientation),因为: API级别1应该布局是列还是行。相关XML属性* android:orientation参数orientation传递水平或垂直。默认值为水平。

我尝试过使用import android.widget.LinearLayout,但没有成功。*

通过修改,我发现1是垂直的,这可以很好地工作,但这是一个应该修复的bug。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5306466

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档