Find all views with tag?

后端 未结 4 737
臣服心动
臣服心动 2020-11-29 06:12

I am looking to find all the views in a specified activity that have the tag \"balloon\" for example then hide them using setVisibility to GONE.

4条回答
  •  日久生厌
    2020-11-29 07:02

    One approach would be to start with the parent ViewGroup, loop through its children(and their children and so on) and then check tags on each one of them.

提交回复
热议问题