LinearLayout的setOrientation方法不会接受垂直参数,这与android参考资料中的以下内容相反
public void setOrientation (int orientation),因为: API级别1应该布局是列还是行。相关XML属性* android:orientation参数orientation传递水平或垂直。默认值为水平。
我尝试过使用import android.widget.LinearLayout,但没有成功。*
通过修改,我发现1是垂直的,这可以很好地工作,但这是一个应该修复的bug。
https://stackoverflow.com/questions/5306466
复制相似问题