Hi, I'm currently making my own horizontallistview based on an AdapterView.
I want to display scrollbars in my view but i have a NullPointerException in the draw method my custom view's viewparent. I have properly overridden all compute***methods and enabled scrollbars with the following line of code : *setHorizontalScrollBarEnabled(true);* Here is my stacktrace : *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

