Rowspan de la disposición de la tabla del androide
Quiero construir el siguiente diseño, pero no funciona.
Alt text http://toms-toy.de/rowspan.gif
- Cuadrícula con bordes
- Barra de desplazamiento horizontal y vertical en Android con tablelayout?
- Cómo eliminar la fila de la tabla en el diseño de la tabla en android
- Mesa Android con borde redondo
- implementar android: stretchColumns = "*" programatically en Android
<LinearLayout android:orientation="horizontal"...> <ImageView ...></ImageView> <TableLayout ...> <TableRow..> <ImageView ...></ImageView> <ImageView ...></ImageView> <ImageView ...></ImageView> </TableRow> <TableRow..> <ImageView ...></ImageView> <ImageView ...></ImageView> <ImageView ...></ImageView> </TableRow> </TableLayout> <ImageView ...></ImageView> </LinearLayout>
- Cómo configurar la columna de diseño de la vista en código (la vista está dentro de tablerow)?
- Android TableRow RelativeLayout problema
- NullPointerException lanzado en Eclipse al intentar abrir la vista de Android XML?
- Alinear botones dentro de un TableRow
- Crear TableLayout mediante programación
- Android TableLayout vs GridView vs Otros?
- Android: Tablerow mezclado con columnas y texto multilínea
- Obtener RowCount total para TableLayout en Android
Pongo esto muy rápido, pruebe esto:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ImageView android:layout_width="50dip" android:layout_height="100dip" android:background="#cc0000"/> <TableLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <TableRow> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#aaaa00"/> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#00aa00"/> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#aaaa00"/> </TableRow> <TableRow> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#00aa00"/> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#aaaa00"/> <ImageView android:layout_width="50dip" android:layout_height="50dip" android:background="#00aa00"/> </TableRow> </TableLayout> <ImageView android:layout_width="50dip" android:layout_height="100dip" android:background="#cc0000"/> </LinearLayout>
Probar esto:
<TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content"> <TableRow> <TextView android:text="1-2, 1;\t" android:layout_gravity="center" /> <TableLayout> <TableRow> <TextView android:text="1, 2;\t" android:layout_gravity="center" /> </TableRow> <TableRow> <TextView android:text="2, 2;\t" android:layout_gravity="center" /> </TableRow> </TableLayout> </TableRow> </TableLayout>