pakerfeldt / android-viewflow

A horizontal view scroller library for Android
1.78k stars 694 forks source link

CircleFlowIndicator #26

Closed cuiwenpeng closed 13 years ago

cuiwenpeng commented 13 years ago

help.....When using a handler to load the server data, CircleFlowIndicator not display correctly. private void loadPage(){ list = aj.getAdvListHttp();

Message msg = new Message();
msg.what=0;
mh.sendMessage(msg);

          }

           public boolean handleMessage(Message msg) {

viewflow.setAdapter(new BigViewAdapter(this, list));
viewflow.setFlowIndicator(viewflowindic);
findViewById(R.id.adv_load).setVisibility(View.INVISIBLE);

adv_List.setVisibility(View.INVISIBLE);
adv_List.setAdapter(new ViewAdapter(this, list));
return false;
            }

CircleFlowIndicator Always shows three small dots.

pakerfeldt commented 13 years ago

Seems like you haven't told your circle flow indicator about your viewflow instance. Make sure you call setViewFlow(...) with your viewflowindic.