You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You must have your adapter to implement data creation in carousel, so if you want to update your data just update de source of it and then update adapter:
PageAdapter myPageAdapter = new PageAdapter(context, arrayData);
LavadosCarouselAdapter carousel = (HorizontalInfiniteCycleViewPager) findViewById(R.id.carousel_id);
carousel.setAdapter(myPageAdapter);
//Update data
arrayData.add(something);
//refresh adapter
myPageAdapter.notifyDataSetChanged();
hi how can I reload data to the CycleViewPager
The text was updated successfully, but these errors were encountered: