I want to passes some value inside button click with viewpager tab fragment changing. I have two question.
- what is the best way to passes data?
If I use static data what will be problem? such like:
public static string abc="" case R.id.IVActionMore: ViewPager viewPager = (ViewPager) getActivity().findViewById(R.id.tabs_viewpager); viewPager.setCurrentItem(3); //abc = "action"; break;