change viewpage swipe direction in RTL layer in android -
i try use rtl layerdirection in activity viewpager , tablayout.but in rtl layer viewpager swipe direction reversed , set currentitem viewpager , tablayout changed. i try after , before setupwithviewpager dose not work. any idea..!! i try : mviewpager = (viewpager) findviewbyid(r.id.mviewpager ); mviewpager.setadapter(adapter); mviewpager.setcurrentitem(mviewpager.getadapter().getcount() - 1,false); tablayout = (tablayout) findviewbyid(r.id.tabs); tablayout.setupwithviewpager(mviewpager); and : mviewpager = (viewpager) findviewbyid(r.id.container); mviewpager.setadapter(msectionspageradapter); tablayout = (tablayout) findviewbyid(r.id.tabs); tablayout.setupwithviewpager(mviewpager); mviewpager.setcurrentitem(mviewpager.getadapter().getcount() - 1,false); you can create custom pager adapter: public class custom_pageradapter extends fragmentpageradapter{ /* * attributes: * * class attributes * * */ private arraylist<...