Foros del Web » Programando para Internet » Android »

TableLayout problema con maquetacion

Estas en el tema de TableLayout problema con maquetacion en el foro de Android en Foros del Web. Buenos dias Tengo un problema a la hora de maquetar una actividad, debe ser una chorrada pero me esta volviendo loco El tema esta en ...
  #1 (permalink)  
Antiguo 11/09/2013, 02:00
 
Fecha de Ingreso: septiembre-2009
Mensajes: 84
Antigüedad: 14 años, 7 meses
Puntos: 2
TableLayout problema con maquetacion

Buenos dias

Tengo un problema a la hora de maquetar una actividad, debe ser una chorrada pero me esta volviendo loco

El tema esta en que la imagen que esta entre los textos y las letras no hay forma de que se vea igual que el boton que esta debajo de las letras

Debe ser tema de los spans



Este es el codigo de la actividad

Código:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/gradient"
    android:gravity="center"
    android:orientation="vertical" >

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="left"
        android:layout_marginLeft="10dp"
        android:layout_marginTop="10dp"
        android:layout_weight="1"
        android:orientation="horizontal" >

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="0dp" >

            <TableRow android:gravity="center_vertical" >

                <ImageView
                    android:id="@+id/info"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginLeft="10dp"
                    android:layout_marginRight="10dp"
                    android:contentDescription="@string/info_pm2"
                    android:src="@drawable/infomdpi2" />

                <TextView
                    android:id="@+id/info_pm1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:text="@string/info_pm3"
                    android:textColor="#FFFFFF"
                    android:textSize="30sp"
                    android:textStyle="bold" />
            </TableRow>
        </TableLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_weight="5"
        android:gravity="center" >

        <TableLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginLeft="25dp"
            android:layout_marginRight="25dp"
            android:background="@drawable/roundcorners"
            android:gravity="center_horizontal"
            android:paddingBottom="15dp"
            android:paddingLeft="25dp"
            android:paddingRight="25dp"
            android:paddingTop="15dp" >

            <TableRow>

                <TextView
                    android:id="@+id/Textman1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="1"
                    android:text="@string/mantxt3_pm31"
                    android:textColor="#000000"
                    android:textSize="13sp" />
            </TableRow>

            <TableRow>

                <TextView
                    android:id="@+id/Textman1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="1"
                    android:text="@string/mantxt3_pm32"
                    android:textColor="#000000"
                    android:textSize="13sp" />
            </TableRow>

            <TableRow>

                <TextView
                    android:id="@+id/Textman1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="1"
                    android:text="@string/mantxt3_pm33"
                    android:textColor="#000000"
                    android:textSize="13sp" />
            </TableRow>

            <TableRow>

                <TextView
                    android:id="@+id/Textman1"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="1"
                    android:text="@string/mantxt3_pm34"
                    android:textColor="#000000"
                    android:textSize="13sp" />
            </TableRow>

            <TableRow android:gravity="center" >

                <ImageView
                    android:id="@+id/instrtutpm1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="2"
                    android:contentDescription="@string/logo"
                    android:src="@drawable/man3" />
            </TableRow>

            <TableRow android:gravity="center" >

                <TextView
                    android:id="@+id/celdaA"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center_horizontal|bottom"
                    android:text="A"
                    android:textColor="#000000"
                    android:textSize="20sp"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/celdaB"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center_horizontal|bottom"
                    android:text="B"
                    android:textColor="#000000"
                    android:textSize="20sp"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/celdaC"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center_horizontal|bottom"
                    android:text="C"
                    android:textColor="#000000"
                    android:textSize="20sp"
                    android:textStyle="bold" />

                <TextView
                    android:id="@+id/celdaD"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:gravity="center_horizontal|bottom"
                    android:text="D"
                    android:textColor="#000000"
                    android:textSize="20sp"
                    android:textStyle="bold" />
            </TableRow>

            <TableRow android:gravity="center_vertical|right" >

                <Button
                    android:id="@+id/BtnNextQ"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_span="4"
                    android:layout_weight="1"
                    android:text="@string/next" />
            </TableRow>
        </TableLayout>
    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginRight="10dp"
        android:layout_weight="1"
        android:gravity="center|right" >

        <TextView
            android:id="@+id/large_appname"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/pm3_3"
            android:textColor="#FFFFFF"
            android:textSize="20sp"
            android:textStyle="bold" />
    </LinearLayout>

</LinearLayout>
Muchas gracias

Etiquetas: app, maquetacion, txt
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:14.