android - set ViewPager position with RecyclerView position -
i'm writing software gallery, use view list of recyclerview , change images viewpager. question: how can use recyclerview position in viewpager? i've tried several different conditions not work
thank time gave me
@override public object instantiateitem(viewgroup container, int position) { // recyclerview position intent intent = ((detailsactivity) context).getintent(); bundle bundle = intent.getextras(); int position1 = bundle.getint("position"); string pst = string.valueof(position1); if (pst != null ){ position = position1; }
Comments
Post a Comment