Kotlin Adapter Declaration issue: Type mismatch: inferred type is MyTabAdapter but RecyclerView.Adapter<(raw) RecyclerView.ViewHolder!>? was expected

后端 未结 0 1314
后悔当初
后悔当初 2020-12-08 10:51

Making tabs with TabLayout and ViewPager2 and fragment. I am getting type mismatch on adapter

class ProfileActivity:AppCompatActivity() { lateinit var toolbar: Toolba

相关标签:
回答
  • 消灭零回复
提交回复
热议问题