Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglu1209 committed Sep 14, 2016
1 parent a11ed82 commit 2a14be1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public Object instantiateItem(ViewGroup container, int position) {
/**
* 和正常设置pagerAdapter一样的步骤
*/
View view = setView(position);
container.addView(view);
final int p = position;
View view = setView(p);
container.addView(view);
view.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Expand Down

0 comments on commit 2a14be1

Please sign in to comment.