Open nivanrajmohan opened 4 years ago
Hi. show your code, please.
`<me.relex.circleindicator.CircleIndicator2
android:layout_width="wrap_content"
android:layout_height="48dp"
android:id="@+id/dotindicator"
android:visibility="visible"
app:ci_drawable="@drawable/active_dots"
app:ci_drawable_unselected="@drawable/deactive_dots"
android:layout_alignParentRight="true"
android:layout_below="@+id/select_title"
android:layout_marginRight="10dp">
</me.relex.circleindicator.CircleIndicator2>`
`private void SetUpRecycle(){
rda = new RecyclerDefectAdapter(this,defectLists);
rv.setAdapter(rda);
rv.setLayoutManager(new GridLayoutManager(this,2,GridLayoutManager.HORIZONTAL,false));
rda.notifyDataSetChanged();
PagerSnapHelper snapHelper = new PagerSnapHelper();
snapHelper.attachToRecyclerView(rv);
ci.attachToRecyclerView(rv,snapHelper);
}`
Hi. show your code, please.
Above is my code, xml and java code, please let me know what is the problem..
Recently you said that you tried adding adapter observable. It is missed in SetUpRecycle.
I tried that before, still no changes so i removed that line.
We can't run this piece of example to try to reproduce this error. Show your working code, with an adapter and data that you insert to an adapter.
I'm using support version which is implementation 'me.relex:circleindicator:1.3.2' . After i attach this to recyclerview and snaphelper, the indicator is not showing. The CircleIndicator for viewpager working but CircleIndicator2 is not showing at all with recyclerview. I tried added adapter observable which is stated optional but still same.