Kotlin下Could not find Fragment c

2020-11-02  本文已影响0人  happyhou

以下下两种方法都可以解决


class ReflectDemoFragment @JvmOverloads constructor() :Fragment(){


}
class ReflectDemoFragment () :Fragment(){

    companion object {
        @JvmStatic
        val fragment = ReflectDemoFragment()
    }

}
上一篇 下一篇

猜你喜欢

热点阅读