TableLayout - com shrinkColumns

Top  Previous  Next

Não tem fonte java

Tela

 

main.xml

 

<?xml version="1.0" encoding="utf-8"?>

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"

  android:layout_width="fill_parent"

  android:layout_height="fill_parent"

  android:shrinkColumns="2" >

 

  <TableRow>

      <TextView android:text="Coluna 1" />

      <TextView android:text="Coluna 2" android:textColor="#FFFF00"/>

  </TableRow>

   

  <TableRow>

      <TextView android:text="Coluna 1" />

      <TextView android:text="Coluna 2" android:textColor="#FFFF00"/>

      <TextView android:text="Texto muito grande que vai sair d a tela, mas o shrinkColums 2 quebra" android:textColor="#00FFFF"/>

  </TableRow>

 

  <TableRow>

      <TextView android:text="Coluna 1" />

      <TextView android:text="Coluna 2" android:textColor="#FFFF00" />

      <TextView android:text="Coluna 3" android:textColor="#00FFFF"/>

      </TableRow>

</TableLayout>