Use requestLayout(), invalidate() is to redraw the view.

On Mon, Apr 20, 2009 at 1:44 AM, Kaka <clipse.z...@gmail.com> wrote:
>
> In my code, I only changed the layout params of an image after it is
> shown. For example,  change the height of the layout. I called the
> invalidate() function after the change, but it does not work. Although
> the height of the layoutparams changed, but the view does not change.
>
> Why?
>
> Anyone can help me on this?
>
>
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to