T Tiby Member Licensed User Longtime User Nov 5, 2012 #1 Hola compañeros: Llevo dos días volviendome loco con un tabhost. Resulta que tengo cuatro pestañas en el tabhost, en la primera me funciona bien (muestro una tabla generada dinámicamente mediante una consulta) pero cuando cambio a otra pestaña me superpone los datos de la nueva con la antigua. Gracias por la ayuda.
Hola compañeros: Llevo dos días volviendome loco con un tabhost. Resulta que tengo cuatro pestañas en el tabhost, en la primera me funciona bien (muestro una tabla generada dinámicamente mediante una consulta) pero cuando cambio a otra pestaña me superpone los datos de la nueva con la antigua. Gracias por la ayuda.
marbellapc Member Licensed User Longtime User Nov 15, 2012 #2 Buenas, como cargas los tab en Activity_Create??? Yo tengo una aplicacion con 4 pestañas y no me superpone ninguna.
Buenas, como cargas los tab en Activity_Create??? Yo tengo una aplicacion con 4 pestañas y no me superpone ninguna.
klaus Expert Licensed User Longtime User Nov 15, 2012 #3 ... en la primera me funciona bien (muestro una tabla generada dinámicamente mediante una consulta) pero cuando cambio a otra pestaña me superpone los datos de la nueva con la antigua. Click to expand... How do you generate the table and where ? If you posted your project as a zip file it would be easier to help. Best regards.
... en la primera me funciona bien (muestro una tabla generada dinámicamente mediante una consulta) pero cuando cambio a otra pestaña me superpone los datos de la nueva con la antigua. Click to expand... How do you generate the table and where ? If you posted your project as a zip file it would be easier to help. Best regards.
T Tiby Member Licensed User Longtime User Nov 18, 2012 #4 Este es el código de la aplicación donde me da el fallo. Me superpone los datos de los 4 listview. Gracias por la ayuda. Attachments errTabHost.zip errTabHost.zip 12.2 KB · Views: 475
Este es el código de la aplicación donde me da el fallo. Me superpone los datos de los 4 listview. Gracias por la ayuda.
klaus Expert Licensed User Longtime User Nov 18, 2012 #5 Here you are. You were mixing up several things. - You read empty layout files to the TabHost. - In the TabHost_TabChanged routine you add ListViews to the Activity. I changed the program: - Modified the ListViews to the layout files for the tabs - Initialized the ListViews once. Best regards. Attachments errTabHost_1.zip errTabHost_1.zip 12.5 KB · Views: 502
Here you are. You were mixing up several things. - You read empty layout files to the TabHost. - In the TabHost_TabChanged routine you add ListViews to the Activity. I changed the program: - Modified the ListViews to the layout files for the tabs - Initialized the ListViews once. Best regards.