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肯定沒(méi)有orientation屬性,因?yàn)樗前凑障鄬?duì)位置(上下左右)排列的,沒(méi)有排列方向的問(wèn)題。LinearLayout有setOrientation方法