【发布时间】:2018-11-19 14:16:41
【问题描述】:
我的 Robo 脚本在遇到此结构中的布局时中止:
<?xml version="1.0" encoding="utf-8"?>
<androidx.drawerlayout.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:fitsSystemWindows="true"
tools:context=".ui.AuftraegeActivity">
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
android:id="@+id/swipeRefreshLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView
android:id="@+id/projekte_listview"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_horizontal"
android:background="@android:color/white"
android:clipToPadding="false"
android:divider="#d3d3d3"
android:dividerHeight="2dp"
android:paddingStart="10dp"
android:paddingEnd="10dp"
android:scrollbarStyle="outsideOverlay"
android:visibility="gone"
tools:visibility="visible" />
</androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
<include layout="@layout/navdrawer" />
</androidx.drawerlayout.widget.DrawerLayout>
这里我尝试点击ListView的第一个条目。
与服务器成功同步后,ListView 的可见性设置为在 AuftraegeActivity 内可见。同步时会显示一个(UI 阻塞)进度条。
删除SwipeRefreshLayout让Robo脚本成功运行。
这是 Robo 脚本的相关部分:
{
"eventType": "LIST_ITEM_CLICKED",
"timestamp": 1542633892083,
"replacementText": "",
"actionCode": -1,
"delayTime": 0,
"canScrollTo": false,
"elementDescriptors": [
{
"className": "android.widget.LinearLayout",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": 0,
"groupViewChildPosition": -1,
"resourceId": "de.tarent.ngop.android.debug:id/ll_auftrag_list_item_container",
"contentDescription": "",
"text": ""
},
{
"className": "android.widget.ListView",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": -1,
"groupViewChildPosition": 0,
"resourceId": "de.tarent.ngop.android.debug:id/projekte_listview",
"contentDescription": "",
"text": ""
},
{
"className": "androidx.swiperefreshlayout.widget.SwipeRefreshLayout",
"recyclerViewChildPosition": -1,
"adapterViewChildPosition": -1,
"groupViewChildPosition": 0,
"resourceId": "de.tarent.ngop.android.debug:id/swipeRefreshLayout",
"contentDescription": "",
"text": ""
}
]
},
【问题讨论】:
标签: android firebase firebase-test-lab