Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fragments Project #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

LeonardiR
Copy link

Fragments Project

Fragments project
Fragments Project with changes
@cristiantanas
Copy link
Owner

¡Un buen trabajo! Sólo algunos comentarios:

  • Los ficheros de la carpeta .idea no hace falta subirlos al control de versiones ya que son ficheros específicos de cada instalación de Android Studio.
  • En la HomeActivity estás cargando el fragment "dos veces"
if (findViewById(R.id.mobile) != null){
     ListFragment list = new ListFragment();
     getSupportFragmentManager().beginTransaction().add(R.id.mobile, list).commit();
}

Aquí estás cargando el fragment ListFragment dinámicamente, pero también tienes un tag <fragment> en el layout/activity_home.xml. Esto hace que el fragment se cargue automáticamente al iniciar la Activity.

  • En la HomeActivity, el botón gotoSubactivity inicia la TaskFormActivity independientemente de si estamos en un móvil o una tablet. En el segundo caso, el botón no debería hacer nada.

@LeonardiR
Copy link
Author

Gracias Cristian!!

Arreglare esos detalles que mencionaste

Saludos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants