我的代碼中有RecyclerViewView Pager,我試圖在 View Pager 中設置setCurrentItem,但它不起作用,我該怎么辦?我的代碼:pot = getIntent().getIntExtra("pot",0);viewPager = (ViewPager) findViewById(R.id.viewPager);slidAdapter = new SlidAdapter(this, userList);viewPager.setAdapter(slidAdapter);viewPager.setCurrentItem(pot);
如何在 View Pager 中設置當前項目
慕尼黑5688855
2022-10-26 16:48:11