companion object {
fun newInstance(type: Int): DressUp1Fragment {
val fragment = DressUp1Fragment()
val args = Bundle()
args?.putInt("type", type)
fragment.arguments=args
return fragment
}
}
Android 使用newInstance()来实例化fragment
猜你喜欢
转载自blog.csdn.net/u013750244/article/details/102931096
今日推荐
周排行