public void clickOnActionBarItem(int id)Clicks an ActionBarItem matching the specified resource id。
Parameters:id - the R。id of the ActionBar item to clickclickOnActionBarHomeButton
public void clickOnActionBarHomeButton()Clicks an ActionBar Home/Up button。drag
public void drag(float fromX, float toX, float fromY, float toY, int stepCount)Simulate touching the specified location and dragging it to a new location。robotiumParameters:fromX - X coordinate of the initial touch, in screen coordinatestoX - X coordinate of the drag destination, in screen coordinatesfromY - Y coordinate of the initial touch, in screen coordinatestoY - Y coordinate of the drag destination, in screen coordinatesstepCount - how many move steps to include in the drag。
Less steps results in a faster dragscrollDown
public boolean scrollDown()Scrolls down the screen。Returns:true if more scrolling can be performed and false if it is at the end of the screenscrollToBottom
public void scrollToBottom()Scrolls to the bottom of the screen。scrollUp
public boolean scrollUp()Scrolls up the screen。Returns:true if more scrolling can be performed and false if it is at the top of the screenscrollToTop
public void scrollToTop()Scrolls to the top of the screen。scrollDownList
public boolean scrollDownList(android.widget.AbsListView list)Scrolls down the specified AbsListView。Parameters:list - the AbsListView to scrollReturns:true if more scrolling can be performedscrollListToBottom
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/ruanjian/article-37529-21.html
想讹点钱花
无非就是电视剧播完了