Advertisement
AzisMM

MenuVideoKajian.kt

Nov 15th, 2021
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. class MenuVideoKajianActivity : AppCompatActivity() {
  2.  
  3. private lateinit var binding: ActivityMenuVideoKajianBinding
  4.  
  5. override fun onCreate(savedInstanceState: Bundle?) {
  6. super.onCreate(savedInstanceState)
  7.  
  8. binding = ActivityMenuVideoKajianBinding.inflate(layoutInflater)
  9. val view = binding.root
  10. setContentView(view)
  11.  
  12. setSupportActionBar(binding.toolbarMenuVideoKajian)
  13. initRecyclerView()
  14. }
  15.  
  16. private fun initRecyclerView() {
  17. val list: ArrayList<VideoKajianModel> = arrayListOf()
  18. binding.rvVideoKajian.setHasFixedSize(true)
  19. list.addAll(VideoKajianData.listData)
  20. binding.rvVideoKajian.layoutManager = LinearLayoutManager(this)
  21. val listVideoAdapter = VideoKajianListAdapter(list)
  22. binding.rvVideoKajian.adapter = listVideoAdapter
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement