Android - Set fragment id

前端 未结 7 1646
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 15:22

How can I set a Fragment\'s Id so that I can use getSupportFragmentManager().findFragmentById(R.id.--)?

7条回答
  •  情深已故
    2020-11-27 16:18

    In addition to Tom's answer, replace method also supports the fragment tag, in addition to add method.

提交回复
热议问题