I'm trying to do a horizontal listview and everything is ok, but no 
scrollbar is shown.
Does anybody solved this problem?
What must be done in compute methods? 

On Friday, May 13, 2011 5:45:17 PM UTC-4, Ga wrote:
>
> I spent more time on it and it the method ViewRoot.draw throw a 
> nullpointer exception. 
>
> I implemented every compute method and add this code to enable 
> scrollbars : 
>
> setHorizontalScrollBarEnabled(true); 
> setScrollContainer(true); 
> setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); 
> setScrollbarFadingEnabled(false); 
>
> Here is the stack trace : 
>
> Thread [<1> main] (Suspended (exception NullPointerException)) 
>         ViewRoot.draw(boolean) line: 1631 
>         ViewRoot.performTraversals() line: 1329 
>         ViewRoot.handleMessage(Message) line: 1944 
>         ViewRoot(Handler).dispatchMessage(Message) line: 99 
>         Looper.loop() line: 126 
>         ActivityThread.main(String[]) line: 3997 
>         Method.invokeNative(Object, Object[], Class, Class[], Class, int, 
> boolean) line: not available [native method] 
>         Method.invoke(Object, Object...) line: 491 
>         ZygoteInit$MethodAndArgsCaller.run() line: 841 
>         ZygoteInit.main(String[]) line: 599 
>         NativeStart.main(String[]) line: not available [native method] 
>
> Thanks for your help 
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to