Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 16, 2019 17:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save parzibyte/7ef2eb220363b5fe1c44f3ba793f4591 to your computer and use it in GitHub Desktop.
private void agregarTabsIniciales(ViewPager viewPager) {
adaptadorViewPager = new AdaptadorViewPager(getActivity().getSupportFragmentManager());
for (int x = 1; x < 3; x++) {
adaptadorViewPager.agregarFragmento(new FragmentFormularioDeAvio(), String.valueOf(x));
}
viewPager.setAdapter(adaptadorViewPager);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment