Android View Pager set Page within Fragment -
i want build viewpager
2 pages. on first page can take category. when list item selected
screen swipes sec page , can take subcategories.
i implemented clicklistener
, on. have no thought how set current page within fragment
. possible? or have solution me? hope understand want achieve.
use ((activityname)getactivity()).getviewpager().setcurrentitem(position);
note: getviewpager()
should homecoming viewpager instance
android android-viewpager
No comments:
Post a Comment