You only have to call requestLayout(). You should check with
HierarchyViewer what exactly is the size of your view after
repagination.

On Thu, Dec 3, 2009 at 2:29 PM, ghassett <[email protected]> wrote:
> I have a View that I've placed into a ScrollView.  The View paginates
> text.  If the text changes, then the height of this view will also
> change (expand or contract, depending on whether the new text takes
> more vertical space or less).
>
> For debugging, I draw a rectangle around the view to show its current
> size.
>
> After I repaginate, I cannot get Android to cause the View to change
> its size -- I have tried calling measure() myself, calling
> requestLayout(), and calling forceLayout() -- even though my
> overloaded onMeasure gets called, and calls setMeasuredDimension()
> with the correct values, the view remains the same size as it was
> before repagination.  What am I missing?
>
> Any help is very much appreciated!
>
> --
> 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
>



-- 
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

Reply via email to