Right you are, and indeed it has fixed it, however, I thought that the correct way to do it to call postInvalidate on the container and that the activity will take care of it itself... What am I missing?
On May 4, 9:59 pm, Romain Guy <[email protected]> wrote: > You probably forgot to call requestLayout(). > > > > On Mon, May 4, 2009 at 6:41 PM, Sheepz <[email protected]> wrote: > > > First of all, thanks for the quick reply. > > I have tried it and it worked partially - I'll explain what I mean: > > I have a linear layout with 5 image views in it > > when I set it with the xml so that 2 of the image views have a gravity > > value of top and the rest are bottom (or for that matter 2 of the > > image views have a bottom margin of 10px and the others 0px) it indeed > > shows it corretly. > > however when i set it in the code, it will only show one imageview as > > gravity top and will not set the others as to until i reset the first > > one to bottom - i.e. there can only be one imageview with a top value > > at a time for some reason - have you ever encountered that? do you > > know why that happens? > > Thanks, > > Sh. > > > On May 4, 8:49 pm, Romain Guy <[email protected]> wrote: > >> ((LinearLayout.LayoutParams) imageView.getLayoutParams()).gravity = > >> Gravity.TOP; > > >> On Mon, May 4, 2009 at 5:47 PM, Sheepz <[email protected]> wrote: > > >> > I need to change it for an imageview that resides in a linearLayout > >> > changing it from top to bottom > >> > any ideas? > >> > thanks, > >> > Sh > > >> -- > >> Romain Guy > >> Android framework engineer > >> [email protected] > > >> Note: please don't send private questions to me, as I don't have time > >> to provide private support. All such questions should be posted on > >> public forums, where I and others can see and answer them > > -- > Romain Guy > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

