I am trying to make An Activity with 4 Chips in a Horizontal Scrolling ChipGroup.
This Activity is using the ChipGroup as a filter for API call, and can have Extras telling which Chip was selected by user.
Currently I'm doing it like :
chipScroll.postDelayed(() -> {
chipScroll.smoothScrollBy(800, 0);
},100);
But this is quite a hacky solution to what I want to achieve.
Is there any other way to scroll to selected Chip in a Horizontal Scrolling ChipGroup?
Edit :
I've thought of trying to iteratively get all the Chips in the ChipGroup and match its IDs. But it seems hacky too. Something like spinnerAdapter.getItem(spinner.getSelectedItemPosition) is what I'm aiming for