Kotlin中的FirebaseRecyclerAdapter

时间:2018-10-31 12:33:28

标签: kotlin

我尝试像在Java示例中那样在kotlin中获得FirebaseRecyclerAdapter:

adapter= new FirebaseRecyclerAdapter<Category,CategoryViewHolder>(Category.class, R.layout.category_layout, CategoryViewHolder.class, categories){@override...

在科特林:

        var adapter= object :FirebaseRecyclerAdapter<Category,CategoryViewHolder>(Category::class.java, R.layout.category_layout ,CategoryViewHolder::class { override fun...

    }

我收到“许多参数”错误

0 个答案:

没有答案