baidu / baidu/Cafe

cafe遍历问题:getAllOperatableViews遍历后节点数目不对

Open
#18 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
367
Forks
209
PR merge metrics
No merged PRs in 30d

Description

public static ArrayList getAllOperatableViews()方法遍历后返回的View数据不对,我看了方法的实现:发现当(view instanceof ViewGroup)时,getListItems方法只对ListView、ScrollView、GridView三种情况作了处理,其他情况都没有处理,而我获取到的很多view都是其他情况,这样的遍历一定会导致获取到的节点数据丢失的,不知道我说的对不对,如果对的话,麻烦 能指教一下如何处理其他的情况?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with getAllOperatableViews() and its getListItems() handling of ViewGroup, then reproduce the traversal with ViewGroup types beyond ListView, ScrollView, and GridView. Determine whether descendant Views are omitted and verify that the returned collection includes all operatable nodes without loss.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.