on-internet
← Community

How to implement swipe view on fragment

Stack Overflow ·

I'm trying to implement a swipe inside a fragment! My application use a Navigation Drawer Layout and I change view with the drawer. All the view that I show are fragment. Now, I want to implement into a specific fragment an horizontal swipe. How can I do this thing? my code is here : public class MybookingFragment extends Fragment { public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) { final View Rootview = inflater.inflate(R.layout.mybooking, parent, false); ViewPager viewPager = (ViewPager) Rootview.findViewById(R.id.viewpager); FragmentManager frag

Comments

Sign in or sign up to comment and upvote.

No comments yet.