How to set a Fragment tag by code?

前端 未结 8 2382
我寻月下人不归
我寻月下人不归 2020-12-01 02:26

I haven\'t found something like setTag(String tagName) method in the Fragment class. The only way to set a Fragment tag that I have fo

8条回答
  •  隐瞒了意图╮
    2020-12-01 02:57

    Yes. So the only way is at transaction time, e.g. using add, replace, or as part of the layout.

    I determined this through an examination of the compatibility sources as I briefly looked for similar at some point in the past.

提交回复
热议问题