recyclerView

    val data = ArrayList<Data>()

   data.add("strign")

    val adapter = EmployeAdapter(a)
    recyclerview.adapter = adapter

in "a " i am getting error how to fix that error

Try

@Composable
fun() {
  LazyColumn// or LazyRow or LazyVerticalGrid / Horizontal 
}

It’s much simpler and has better performance.

1 Like

You didn’t define “a”

1 Like