01 2013 档案

摘要:UiScrollable is aUiCollectionand provides support for searching for items in a scrollable user interface (UI) elements. This class can be used with horizontally or vertically scrollable controls.UiScrollable是一个UiCollection(这东西还没搞懂),我们可以使用它,在可滑动的页面(水平滑动或上下滑动都可以)上查找我们想要的控件(item)。例1:下面的这个scrollClickObj 阅读全文
posted @ 2013-01-24 09:17 Rex.M 阅读(3440) 评论(0) 推荐(0)
摘要:1. UiObejct.getFromParent()的用法:从这个名字就知道,就是从当前对象的父对象中查找想要的子对象,该子对象和当前对象应该是同一层级。如上图所示:Max inactivity before lock是已知条件,4 minutes是我想动态获取的内容。那应该怎么做呢?先看看结构:TableLayout(curent index is 2) - TableRow(has several indexes) - TextView(has 2 indexes)。先获取TableLayout index为2的那个对象遍历TableLayout里面的TableRow,获取TableRo 阅读全文
posted @ 2013-01-04 18:32 Rex.M 阅读(4145) 评论(0) 推荐(0)