标签: android android-fragments
在树屋上帮我解决这个问题。我如何检索标签?
https://teamtreehouse.com/community/can-you-please-make-sure-that-we-retrieve-by-tag-and-every-time-we-add-or-set-our-fragment-in-our-fragment-transactions
答案 0 :(得分:0)
只需使用getFragmentManager().findFragmentByTag(String)。
getFragmentManager().findFragmentByTag(String)
相关:
Find Fragment by tag name in Container
Get Fragment by Tag
Get tag of currently displayed fragment
Uses of fragment tags