android 派发Touch事件

我已经实现了ListView的下拉刷新功能,但是在初始进入这个页面的时候,需要模拟下拉这个动作,让ListView自动开始刷新,请问这个怎么实现?谢谢

在本应用中,模拟一次点击触屏的操作是可以的。
如:

 Instrumentation inst = new Instrumentation();
inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMillis(),SystemClock.uptimeMillis(), 
                         MotionEvent.ACTION_DOWN, 500, 200, 0));
inst.sendPointerSync(MotionEvent.obtain(SystemClock.uptimeMillis(),SystemClock.uptimeMillis(), 
                         MotionEvent.ACTION_UP, 500, 200, 0));

你这中体验不好,初始时,可以加载数据,但是不要显示下拉状态,可以显示进度条,表示正在加载

哦哦,那能不能实现这样的效果呢,我想研究一下,谢谢