dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.63k stars 347 forks source link

findViewWithAttributeThatMatches only get one result #265

Closed b10102016 closed 5 years ago

b10102016 commented 5 years ago

As title,

When called findViewWithAttributeThatMatches, only get one view. However, according to the result of dump -a, there are more than one view that match the regexp.

Thanks

dtmilano commented 5 years ago

You can try

findViewsWithAttribute(attr, regex)

(notice the plural Views).

But you are right, and probably the method findViewsWithAttributeThatMatches() should be added.

b10102016 commented 5 years ago

Thanks for updating