Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MenuVideoKajianActivity : AppCompatActivity() {
- private lateinit var binding: ActivityMenuVideoKajianBinding
- override fun onCreate(savedInstanceState: Bundle?) {
- super.onCreate(savedInstanceState)
- binding = ActivityMenuVideoKajianBinding.inflate(layoutInflater)
- val view = binding.root
- setContentView(view)
- setSupportActionBar(binding.toolbarMenuVideoKajian)
- initRecyclerView()
- }
- private fun initRecyclerView() {
- val list: ArrayList<VideoKajianModel> = arrayListOf()
- binding.rvVideoKajian.setHasFixedSize(true)
- list.addAll(VideoKajianData.listData)
- binding.rvVideoKajian.layoutManager = LinearLayoutManager(this)
- val listVideoAdapter = VideoKajianListAdapter(list)
- binding.rvVideoKajian.adapter = listVideoAdapter
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement