Tuesday, December 31, 2013

Re: [android-developers] LinearLayout as child of ScrollView and View weight's are being ignored

The first png shows my LinearLayout in a ScrollView and hence my weights are being ignored.  You will not even see the TextView below the Image.  

The second is the LinearLayout pulled away from the ScrollView and the weights are being computed.  However, since the LinearLayout is no longer in a ScrollView, I cannot scroll the biography text!  

Another thing I'm curious about is the value assigned to the weight of each view.  I set android:weightSum="100" on the LinearLayout and expected to use percentages for the three views on it.  Like maybe 33/33/33.  However the way to make the image smaller is to actually use a larger weight!  I'm starting to expect cats will chase dogs and water to run uphill!

Thanks and Happy New Year

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate