I am trying to populate a list inside ViewPager2 T...
# android
p
I am trying to populate a list inside ViewPager2 Tab item. The first Tab item loading fine, but when trying to switch to second Tab item it throws as error: Process: com.example.genericandroid PID: 10569 java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View androidx.databinding.ViewDataBinding.getRoot()' on a null object reference at com.example.adapter.MyListAdapter.onCreateViewHolder(MyListAdapter.kt:36) I am using data binding with ListView. Any suggestion please?
not kotlin but kotlin colored 2
c
This is a workspace for the Kotlin programming language. Your general android question should be ask somewhere else. Please check the channel topic for more appropriate places.
p
@Chrimaeon Please suggest a channel to post this question, I tried stackoverflow but no luck :(
c
Here is no channel. Check the channel description. There are links to discord and so on.
👍 1