在一個Linearlayout裡面有五個這樣的東西
[EditText] [ImageButton] [Button] [ImageButton] [ImageButton]
EditText ---- width:0dp, weight:1
ImageButton ---- width:40dp
Button ---- width:wrap_content
由於background需要動態改變 所以都用程式來setBackgroundDrawable來設定
可是不知道是什麼原因
每次畫面其他地方改變時 Button的background都會變短了
有辦法解決嗎?
每个控件都设置一下它的weight