Home > database >  ConstraintLayout cannot be cast to RecyclerView
ConstraintLayout cannot be cast to RecyclerView

Time:10-29

    val rvMaps = findViewById<RecyclerView>(R.id.rvMaps)
    // Set layout manager on the recycler
    rvMaps.layoutManager = LinearLayoutManager(this)

How can I solve the problem?

CodePudding user response:

Sorrry now it's fine I gave the Constraint Layout the id rvMaps and not the recyclerview

  • Related