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

<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> 

Pongo esto muy rápido, pruebe esto:

texto alternativo

 <?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> 
  • Android TableLayout: preserva los anchos de las columnas entre las diferentes tablas
  • Android: TableLayout alinear la primera columna a la derecha, la segunda a la izquierda
  • TableLayout Vs Recycler Ver?
  • Android - Elementos de la interfaz de usuario desactivados
  • Dinámicamente crear tablelayout (android)
  • No se muestran filas de tabla añadidas dinámicamente
  • Android TableLayout Ancho
  • Obtener todos los TableRow en un TableLayout
  • ¿Cómo se crea una aplicación que sólo permite la orientación horizontal?
  • Cómo obtener la última posición de vista de desplazamiento, vista de desplazamiento
  • Establecer el número de columnas mediante programación en TableLayout
  • FlipAndroid es un fan de Google para Android, Todo sobre Android Phones, Android Wear, Android Dev y Aplicaciones para Android Aplicaciones.