DiscreteScrollView
DiscreteScrollView copied to clipboard
While using smoothScrollToPosition() the app isn't responding
I have integrated the discrete scroll view with maps and in onMapMarkerSelected I am trying to scroll the discrete scroll view to the marker position but the app is not responding. have tried replacing discrete scroll view with recycler view working fine.
currentLocationSelected.observe(this,selectedLocation->{
Log.e(TAG, "onCreate: "+selectedLocation.getLocationName());
int position = infiniteAdapter.getRealCurrentPosition();
mainBinding.locationScrollView.smoothScrollToPosition(position);
});
this observer gives the location model class object different details like name of the location, lat, etc.
this issue is only happening when using an infinite adapter.
try to test it on the sample app to see if its a real bug
try to test it on the sample app to see if its a real bug
smoothScrollToPosition is really slow. The same slowness can be seen in the DiscreteScrollView sample App.