上下滚动

scrollDown

  1. public boolean scrollDown()
  2. Scrolls down the screen.
  3. Returns:
  4. true if more scrolling can be performed
  5. false if it is at the end of the screen

滚动条进行向下操作
返回:
true-如果可以进行滚动的话
false-如果已经滚动到底部,无法滚动

scrollUp

  1. public boolean scrollUp()
  2. Scrolls up the screen.
  3. Returns:
  4. true if more scrolling can be performed
  5. false if it is at the top of the screen

滚动条进行向上操作

返回:
true-如果可以进行滚动的话
false-如果已经滚动到顶部,无法滚动

scrollToBottom

  1. public void scrollToBottom()
  2. Scrolls to the bottom of the screen.

向下滚动屏幕,一直滚动到底部

scrollToTop

  1. public void scrollToTop()
  2. Scrolls to the top of the screen.

向上滚动屏幕,一直滚动到顶部

对列表

scrollDownList

  1. public boolean scrollDownList(android.widget.AbsListView list| int index)
  2. Scrolls down the specified AbsListView.
  3. Parameters:
  4. list - the AbsListView to scroll
  5. index - the index of the ListView to scroll. 0 if only one list is available
  6. Returns:
  7. true if more scrolling can be performed

操作一个list向下滚动

参数:
list-被操作的滚动条的对象
index-被操作的滚动条索引,如果是0,表示只有一个可以滚动的list
返回:
true-如果可以进行滚动的话
false-如果已经滚动到底部,无法滚动

scrollUpList

  1. public boolean scrollUpList (android.widget.AbsListView list | int index)
  2. Scrolls up a ListView matching the specified index.
  3. Parameters:
  4. list - the AbsListView to scroll
  5. index - the index of the ListView to scroll. 0 if only one list is available
  6. Returns:
  7. true if more scrolling can be performed

操作一个list向上滚动

参数:
list-被操作的滚动条的对象
index-被操作的滚动条索引,如果是0,表示只有一个可以滚动的list
返回:
true-如果可以进行滚动的话
false-如果已经滚动到顶部,无法滚动

scrollListToBottom

  1. public boolean scrollListToBottom (android.widget.AbsListView list | int index)
  2. Scrolls to the bottom of the specified AbsListView.
  3. Parameters:
  4. list - the AbsListView to scroll
  5. index - the index of the ListView to scroll. 0 if only one list is available
  6. Returns:
  7. true if more scrolling can be performed

操作一个list向下滚动一直滚动到底部
参数:
list-被操作的滚动条的对象
index-被操作的滚动条索引,如果是0,表示只有一个可以滚动的list
返回:
true-如果可以进行滚动的话
false-如果已经滚动到底部,无法滚动

scrollListToTop

  1. public boolean scrollListToTop (android.widget.AbsListView list | int index)
  2. Scrolls to the top of the specified AbsListView.
  3. Parameters:
  4. list - the AbsListView to scroll
  5. index - the index of the ListView to scroll. 0 if only one list is available
  6. Returns:
  7. true if more scrolling can be performed

操作一个list向上滚动一直滚动到顶部
参数:
list-被操作的滚动条名称
index-被操作的滚动条索引,如果是0,表示只有一个可以滚动的list
返回:
true-如果可以进行滚动的话
false-如果已经滚动到顶部,无法滚动

scrollListToLine

  1. public void scrollListToLine (android.widget.AbsListView list | int index , int line)
  2. Scroll the specified AbsListView to the specified line.
  3. Parameters:
  4. absListView - the AbsListView to scroll
  5. index - the index of the AbsListView to scroll
  6. line - the line to scroll to

操作滚动条滚动到list的某一行

参数:
list-被操作的滚动条名称
index-被操作的滚动条索引
line-滚动到第几行

水平滚动

scrollToSide

  1. scrollToSide
  2. void scrollToSide (int side [, float scrollPosition])
  3. Scrolls horizontally.
  4. Parameters:
  5. side - the side to scroll; RIGHT or LEFT
  6. scrollPosition - the position to scroll to, from 0 to 1 where 1 is all the way. Example is: 0.60.

水平滚动屏幕,可限制操作滚动的位置
参数:
side-水平滚动的方向,LEFT或者RIGHT
scrollPosition-滚动屏幕的比例,从0到1,如果是0.5,则只会对一半的屏幕进行滚动

scrollViewToSide

  1. public scrollViewToSide (android.view.View.view view, int side [, float scrollPosition])
  2. Scrolls a View horizontally.
  3. Parameters:
  4. view - the View to scroll
  5. side - the side to scroll; RIGHT or LEFT
  6. scrollPosition - the position to scroll to, from 0 to 1 where 1 is all the way. Example is: 0.60.

水平滚动某一个view,可限制操作滚动的位置

参数:
view-滚动的view的对象
side-水平滚动的方向,LEFT或者RIGHT
scrollPosition-滚动屏幕的比例,从0到1,如果是0.5,则只会对一半的屏幕进行滚动

【转载:http://blog.csdn.net/tt75281920/article/details/26821035】

Robotium--scroll操作系列的更多相关文章

  1. C# 串口操作 ---- 系列文章

    C# 串口操作系列(5)--通讯库雏形 通讯库雏形的建立. 串口通讯介绍的高级篇,介绍更高级的抽象,为扩展为通用的客户端通讯库做铺垫,扩展性的考虑,能支持任意类型的流设备. ... 2010-08-0 ...

  2. C# 串口操作系列(5)--通讯库雏形

    C# 串口操作系列(5)--通讯库雏形 标签: 通讯c#数据分析byteclassstring 2010-08-09 00:07 21378人阅读 评论(73) 收藏 举报  分类: 通讯类库设计(4 ...

  3. C# 串口操作系列(4) -- 协议篇,文本协议数据解析

    C# 串口操作系列(4) -- 协议篇,文本协议数据解析 标签: c#uiobjectstringbyte 2010-06-09 01:50 19739人阅读 评论(26) 收藏 举报  分类: 通讯 ...

  4. 【转】C# 串口操作系列(1) -- 入门篇,一个标准的,简陋的串口例子。

    C# 串口操作系列(1) -- 入门篇,一个标准的,简陋的串口例子. 标签: c#objectnewlineexceptionbytestring 2010-05-17 01:10 117109人阅读 ...

  5. zw量化交易·实盘操作·系列培训班

    参见: <zw量化交易·实盘操作·系列培训班> http://blog.sina.com.cn/s/blog_7100d4220102w0q5.html

  6. jQuery下拉框操作系列$("option:selected",this) &&(锋利的jQuery)

    jQuery下拉框操作系列$("option:selected",this)  &&(锋利的jQuery) <!DOCTYPE html> <ht ...

  7. C# 数据操作系列 - 6 EF Core 配置映射关系

    0. 前言 在<C# 数据操作系列 - 5. EF Core 入门>篇中,我们简单的通过两个类演示了一下EF增删改查等功能.细心的小伙伴可能看了生成的DDL SQL 语句,在里面发现了些端 ...

  8. C# 数据操作系列 - 8. EF Core的增删改查

    0.前言 到目前为止,我们看了一下如何声明EF Core的初步使用,也整体的看了下EF Core的映射关系配置以及导航属性的配置. 这一篇,我带大家分享一下,我在工作中需要的EF Core的用法. 1 ...

  9. C# 数据操作系列 - 12 NHibernate的增删改查

    0. 前言 上一篇<C# 数据操作系列 - 11 NHibernate 配置和结构介绍> 介绍了Nhibernate里的配置内容.这一篇将带领大家了解一下如何使用NHIbernate.之前 ...

  10. C# 数据操作系列 - 15 SqlSugar 增删改查详解

    0. 前言 继上一篇,以及上上篇,我们对SqlSugar有了一个大概的认识,但是这并不完美,因为那些都是理论知识,无法描述我们工程开发中实际情况.而这一篇,将带领小伙伴们一起试着写一个能在工程中使用的 ...

随机推荐

  1. Android系统下的动态Dex加载与app速度优化

    1 问题 在Android系统中,一个App的所有代码都在一个Dex文件里面.Dex是一个类似Jar的存储了多有Java编译字节码的归档文件.因为Android系统使用Dalvik虚拟机,所以需要把 ...

  2. List、Set、Map的使用

    1.List(接口) List接口的特点: a.List接口可以存放任意数据,且在接口中,数据可以重复. b.List中提供了高效的插入和移除多个元素的方法. List常用的子类 a.ArrayLis ...

  3. 微信小应用vs progressive-web-apps

    https://developers.google.com/web/progressive-web-apps/

  4. [技术翻译]Guava官方文档Ordering

    关于排序 Guava的链式比较器 例子 assertTrue(byLengthOrdering.reverse().isOrdered(list)); 梗概 Ordering是Guava的链式比较器类 ...

  5. qt实现类似QQ伸缩窗口--鼠标事件应用

    原创文章,引用请保证原文完整性,尊重作者劳动,原文地址http://blog.csdn.net/hiwubihe/article/details/38678305,qq:1269122125. 上一章 ...

  6. javascript权威指南学习笔记3

    今天看到第四章,记录一下其中的几个点,俗话说:好记性不如烂笔头嘛. 4.9   in运算符和instanceof运算符 in运算符希望它的左操作数是一个字符串或可以转化为字符串,希望它的右操作数是一个 ...

  7. Python数据类型list(列表)和tuple(元组)

    list Python内置的一种数据类型是列表:list.list是一种有序的集合,可以随时添加和删除其中的元素. 比如,列出班里所有同学的名字,就可以用一个list表示: >>> ...

  8. iOS开发——OC篇&消息传递机制(KVO/NOtification/Block/代理/Target-Action)

     iOS开发中消息传递机制(KVO/NOtification/Block/代理/Target-Action)   今晚看到了一篇好的文章,所以就搬过来了,方便自己以后学习 虽然这一期的主题是关于Fou ...

  9. linux内核移植 I

    根据tx2440的文档, 目标也比较简单, 先编译成功, 再烧录, 根文件系统, busybox 这些. A. 准备 1. 解压tar, 修改根Makefile ARCH ?= arm CROSS_C ...

  10. Tomcat基础教程(一)

    Tomcat, 是Servlet和JSP容器,其是实现了JSP规范的servlet容器.它在servlet生命周期内包容,装载,运行,和停止servlet容器. Servlet容器的三种工作模式: 1 ...