https://kotlinlang.org logo
Title
u

user

06/28/2022, 11:31 AM
Attempt to invoke virtual method 'void androidx.recyclerview.widget.RecyclerView.setLayoutManager(androidx.recyclerview..)' on a null object reference I want to write a good chat application with bottom navigation using Fragments. In ChatsFragment.kt I got a problem:

enter image description here

My fun onCreateView() in ChatsFragment: override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { usersRecycler.layoutManager = LinearLayoutManager(this, RecyclerView.VERTICAL, false) var userlist =...