I have a viewpager with a number of gridviews in it, how do I update the
gridview?
Updating the viewpager upon onstart is no problem, but the gridview dows
not show any changes.
public class StagesActivity extends Activity {
viewPager.setAdapter( pageradapter );
public class MyPagerAdapter extends PagerAdapter {
public Object instantiateItem( View collection, int position ){
gridView.setAdapter( myadapter );
}
public class MyAdapter extends BaseAdapter{
}
}
public void onStart(){
pageradapter.notifyDataSetChanged();
}
}
I tried overwriting the notifyDataSetChanged of the pageradapter, that
seems to work fine.
But if I then try to update the myadapter on the gridview nothing changes.
This makes sense, since there are multiple gridviews and myadapters but how
do I update them?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en