當我指定的發言權和image view
之間的weight
且所包含相同linear layout
我應該可以在layout_width
值設置爲內linear layout
指定layout_width?它似乎不應該被設置,因爲我說我想要其他layout
佔用90%的空間,而image view
佔用10%的空間。Android的 - 使用layout_weight時
而且好像我可以設置image view
有10%的空間和layout
有90%的空間,但我仍然可以指定image view
在dp's
值?
在這種情況下,我應該只設置在dp's
值的image
,然後指定的1
爲其他layout
一個weight
?
感謝
請發表你試過到目前爲止。 – Tauqir
好吧,我已經嘗試了幾個不同的東西,它們在模擬器中看起來很好,所以我在問什麼是使用權重時指定layout_width的正確權重,以及如果可以使用layout_weight,然後將layout_width值設置爲DP的? – berimbolo
將寬度設置爲0dp。 – StG