Find all views with tag?

后端 未结 4 736
臣服心动
臣服心动 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 06:59

    Could this API call View#findViewWithTag help? Please note that it only returns one view...

    Look for a child view with the given tag. If this view has the given tag, return this view.

提交回复
热议问题