FragmentPagerAdapter Swipe to show ListView 1/3 Screen Width

前端 未结 6 779
走了就别回头了
走了就别回头了 2020-12-23 22:18

EDIT: See my answer below-->

I am wanting to have a view that when swiped to the right, the listView is shown. Very much similar to what is implemen

6条回答
  •  清歌不尽
    2020-12-23 22:48

    Sorry for the late update. I implemented this from walkingice on Gethub with very little modification. Just use a conditional statement for a GestureDetector to swipe it into view only when a ViewPager id of '0' is in view. I also added a toggle whithin my ActionBar

提交回复
热议问题