android - actionbar's upNavigation from activity to fragment -
i have jump activity fragment2 in activity b(in activityb, use viewpager,which contains 4 fragment).what want when use upnavigation of actionbar ,i jump exact second fragment.
can me?(i have searched related questions ,but seems navigate in/between fragments,which not want.)
use , detect onclick
viewpager.setcurrentitem(pagenumber);
above line navigate page
Comments
Post a Comment