Open ahmedneffati opened 6 years ago
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