Hi- The most likely explanation is that you did not modify the weight you thought you did. The very first occurrence of the layout_weight attribute is in the outermost LinearLayout, so it applies to the entire screen, not to the upper half alone (the color bands). To change the weight only for the latter, you need to change the SECOND occurrence of the layout_weight attribute.
Of course, that still doesn't explain the reverse behavior you described, but at least it is a start. Now concerning your background: it is impressive that you have made this much progress in Android w/o an OOP background, but you will make it much easier on yourself if you take the time out to learn at least the elements of OOP using Java before putting too much effort into Android. All the Android documentation and tutorials do assume a fairly high level of familiarity with these elementary facts about Java. On Nov 11, 3:09 pm, maximus-dev <[email protected]> wrote: > Hi Everyone... > > Very short background... I'm currently a C developer (not C++ > unfortunately... so no experience with OOP) who writes homebrew for > the nintendo DS. I'm exploring moving away from that platform and > towards the Android. > > That said, I'm doing as suggested at the end of the LinearLayout View > tutorial and modifying the weight values to see how it affects the > size of the columns and rows. The structure seemed very simple, so it > seemed obvious that modifying the first weight (the top half) to 2 > should give the top section 2/3rds of the screen and the bottom only > 1/3rd. Instead... it appeared to be reversed... the upper area had > become the smaller third (this is in the emulator... I do not have > actual hardware yet). > > I tested the same idea on the color columns and the more expected > result occured... the columns with greater weight were now wider and > seemed to take up the correct fractional area of the screen. > > Any particular reason for this behavior? > > Thanks everyone, > Jeremiah -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

