b2科目四模拟试题多少题驾考考爆了怎么补救
b2科目四模拟试题多少题 驾考考爆了怎么补救

robotium_robotium使用基础_robotium api(21)

电脑杂谈  发布时间:2017-03-14 21:02:58  来源:网络整理
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

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    热点图片
    拼命载入中...