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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -