0
如果我使用ListFragment>
和FragmentPagerAdapter,如何滑動viewpager。我不使用片段管理器。我認爲最好的方法是,如果我可以觸發按鈕單擊從一個片段滑動到另一個鼠標事件,這是可能的android?我沒有在網上找到關於這個主題的材料,我發現瞭如何聆聽鼠標事件。當列表中的所有片段都觸發一個鼠標事件以滑動android viewpager <Fragment>
如果我使用ListFragment>
和FragmentPagerAdapter,如何滑動viewpager。我不使用片段管理器。我認爲最好的方法是,如果我可以觸發按鈕單擊從一個片段滑動到另一個鼠標事件,這是可能的android?我沒有在網上找到關於這個主題的材料,我發現瞭如何聆聽鼠標事件。當列表中的所有片段都觸發一個鼠標事件以滑動android viewpager <Fragment>
我找到了解決方案。我不需要任何鼠標觸發事件。有一個ViewPager方法可以解決我的問題。
setCurrentItem(int item, boolean smoothScroll)