新手请教关于layout的问题
android开发吧
全部回复
仅看楼主
level 3
punimage 楼主
问题(1) radiogroup里面直接放radiobutton,布置的时候正常,但用这些代码load之后(用droiddraw),radiobutton就变成横着排列了。然后我在radiogroup里先放一个LinearLayout,再在LinearLayout里放radiobutton才能竖着排列,但这样子好像三个radiobutton就不相关联了。。这是为什么,该怎么办。
问题(2) android:layout_alignParentLeft和android:layout_toRightOf只能用在relativelayout中的控件吗?
问题(3) 关于android:layout_marginLeft和android:paddingLeft的用法。
外层和里层都是linerlayout的话,感觉android:layout_marginLeft起作用了,外层relativelayout里层linerlayout的话,感觉android:layout_marginLeft的作用没有体现出来,而android:paddingLeft感觉两种情况都没起作用啊
2014年10月25日 13点10分 1
level 3
punimage 楼主
目测是因为droiddraw本身的问题,直接在手机上调试就正常了。。。还有radiogroup应该加上android:orientation="vertical",默认好像是水平的
2014年10月25日 15点10分 3
1