The width is not defined until after the first layout pass.

On Mon, Jun 29, 2009 at 12:23 AM, [email protected]<[email protected]> wrote:
>
> Hi~!! all
>
> Now I'm making a App that using HorizontalScrollView.
>
> I wanna get width of horizontal scroll view. but i can't..
>
> the return value is always 0(zero)...
>
>
> in my code...
>
>
> HorizontalScrollView hscv = (HorizontalScrollView)findViewById
> (R.id.Hscv)
>
> hscv.getwidth () <-- always Zero!!! (three image view in the hscv!!)
>
> somebody help me ~!!!
>
>
> >
>



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