@davideas An activity has 2 adapters, how to distinguish the click events of different adapters?
class MainActivity : BaseActivity(),
FlexibleAdapter.OnItemClickListener {
private lateinit var oneAdapter: FlexibleAdapter<IFlexible<*>>
private lateinit var twoAdapter: FlexibleAdapter<IFlexible<*>>
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
oneAdapter = FlexibleAdapter(null, this, true)
twoAdapter = FlexibleAdapter(null, this, true)
}
override fun onItemClick(view: View?, position: Int): Boolean {
//How to tell if the item currently clicked is from one or two?
}
}
@davideas An activity has 2 adapters, how to distinguish the click events of different adapters?