Android Layout complex using fragment [closed]

1

I'm having trouble creating a footer. The problem is in the horizontal position of the tablet where I have two framelayout and I need to include the skirting board occupying the whole bottom part (below the framelayout). My code looks like this:

<?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:orientation="horizontal" >

<FrameLayout
    android:id="@+id/lado_esquerdo"
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="2" />

<FrameLayout
    android:id="@+id/lado_direito"
    android:layout_width="0dp"
    android:layout_height="match_parent"
    android:layout_weight="2" />

Any suggestions? Any material you can check? I've already tried to include two types of layouts, but it did not work.

Thanks in advance for the help.

Follow the code:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#95accf" >

<RelativeLayout
    android:id="@+id/footer"
    android:layout_width="fill_parent"
    android:layout_height="120dp"
    android:layout_alignParentBottom="true"
    android:background="#95accf" >
<ImageView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:src="@drawable/footer" />
</RelativeLayout>

<TableLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_above="@+id/footer"
    android:stretchColumns="0">

    <TableRow>

        <TextView
            android:id="@+id/descricao"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center"
            android:text="DESCRIÇÃO"
            android:textSize="40dp" />
    </TableRow>

    <TableRow>

        <TextView
            android:id="@+id/preco"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_gravity="center"
            android:text="TESTES"
            android:textSize="40dp" />
    </TableRow>
    </TableLayout>
</RelativeLayout>
    
asked by anonymous 09.07.2015 / 04:33

0 answers