最佳答案
我还没有在 Fragment类中找到类似 setTag(String tagName)方法的东西。设置我找到的 Fragment标记的唯一方法是执行 FragmentTransaction并将标记名作为参数传递。
这是通过代码显式设置 Fragment标记的唯一方法吗?