Skip to content

While using smoothScrollToPosition() the app isn't responding #205

@sbmvirdi

Description

@sbmvirdi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions