android - LinearLayout weight choices -


why use weights 2:4 instead of weights 1:2? looking through udacity course layout. it's linearlayout 2 children views. , children given weights 2 , 4 respectively opposed 1 , 2. why that?

because wanted to? actual values don't matter, ratios does. when see code evolved on time, had in there weight 1 , removed (while weights don't need whole number, people try keep them way).


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -