linearlayout是什么布局 layout中的Orientation屬性如何用代碼設(shè)置?
layout中的Orientation屬性如何用代碼設(shè)置?只有LinearLayout里面有orientation和layout_weight屬性,因?yàn)樗梢灾付丶凑漳莻€(gè)方向排列。Relative
layout中的Orientation屬性如何用代碼設(shè)置?
只有LinearLayout里面有orientation和layout_weight屬性,因?yàn)樗梢灾付丶凑漳莻€(gè)方向排列。RelativeLayout肯定沒有orientation屬性,因?yàn)樗前凑障鄬ξ恢茫ㄉ舷伦笥遥┡帕械?,沒有排列方向的問題。LinearLayout有setOrientation方法