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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -