android系列之Layout學習筆記

1.Linearout 權重的用法: 1.wrap_content 設置A的weight=1;B的weight=2;C的weight=3即可按照比例顯示 2.fill_parent/match_parent 設置A的weight=1;B的weight=2;C的weight=3 用下面這個公式計算: 1-3=-2(只有一個屏幕,但是有三個fill_parent) A     :1+(-2)*1/6=
相關文章
相關標籤/搜索