Roman Nurik's Wizard pager - how to access collected data?

前端 未结 5 1156
既然无缘
既然无缘 2021-02-09 06:56

I am trying to make a wizard using Roman Nurik\'s library (https://plus.google.com/113735310430199015092/posts/6cVymZvn3f4).

I am having trouble accessing the collected

5条回答
  •  太阳男子
    2021-02-09 07:20

    This is my code @Anton_Shkurenko

    mNextButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (mPager.getCurrentItem() == mCurrentPageSequence.size()) {
                    Object o = mPager.getAdapter().instantiateItem(mPager, mPager.getCurrentItem());
                    if(o instanceof ReviewFragment) {
                        List items = ((ReviewFragment) o).getCurrentReviewItems();
                        if(items != null) {
                            Log.v(TAG, "Items are: " + items.toString());
                        }
                    }
                }
            }
        });
    

提交回复
热议问题