[android-developers] Re: Setting a scrollbar position.

2009-07-13 Thread Mathieu Plourde
Now let's say I have a Layout with a scrollbar. Is there any way to set it's location programmatically? On Jul 6, 5:20 pm, Romain Guy romain...@google.com wrote: Is it possible to change a scrollbar's location programatically? I have a ListView and I want to set the position of the scrollbar

[android-developers] Re: Setting a scrollbar position.

2009-07-07 Thread Mathieu Plourde
Is there any way I could use TouchUtils without an InstrumentationTestCase or an ActivityInstrumentationTestCase. I'm doing something in a existing project and using those classes is not possible. I tried calling TouchUtils.clickView(null, view), and I'm getting an exception: Could not find

[android-developers] Re: Setting a scrollbar position.

2009-07-06 Thread Romain Guy
Is it possible to change a scrollbar's location programatically? I have a ListView and I want to set the position of the scrollbar in my code. setSelectedPosition(int) Also, I'm using the Instrumentation framework for feature testing. I was wondering if it's possible to generate a drag

[android-developers] Re: Setting a scrollbar position.

2009-07-06 Thread Mathieu Plourde
I found out how to generate the drag effect, but I can't control it's speed (so it always drags all the way up or all the way down since it's doing to action very fast). I'm using MouseEvent.obtain to get the Event. Then I use sendPointerSync from Instrumentation. What I'm doing is send an