In android how to add Vertical ViewPager? -
i have mainactivity like
public class mainactivity extends slidingfragmentactivity { @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); getwindow().setflags(windowmanager.layoutparams.flag_fullscreen, windowmanager.layoutparams.flag_fullscreen); // main layout setcontentview(r.layout.activity_main); setbehindcontentview(r.layout.menu_frame); // slidingmenu sm = getslidingmenu(); sm.setfadedegree(0.35f); sm.settouchmodeabove(slidingmenu.touchmode_fullscreen); sm.setbehindoffset(120); sm.setmode(slidingmenu.left_right); // left menu getsupportfragmentmanager().begintransaction() .replace(r.id.menu_frame, new leftmenufragment()).commit(); // right menu getslidingmenu().setsecondarymenu(r.layout.menu_frame_second); getsupportfragmentmanager().begintransaction() .replace(r.id.menu_frame_two, new rightmenufragment()).commit(); } }
how can create vertical pager in activity? want scroll vertical between 2 layouts(fragments).
you can use this library, doesn't seems supported anymore
Comments
Post a Comment