0

Hi here is a Example code:

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

<FrameLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:descendantFocusability="blocksDescendants"
        android:id="@+id/index_linearLayout_content"
        android:longClickable="false">
        <LinearLayout
                android:orientation="horizontal"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_marginLeft="3pt"
                android:layout_marginRight="3pt"
                android:layout_gravity="right">

                ....Content....

        </LinearLayout>
        <FrameLayout
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:id="@+id/index_linearLayout_overlay"
                android:layout_marginLeft="3pt"
                android:layout_marginRight="3pt"
                android:layout_gravity="right" >
        </FrameLayout>
        <FrameLayout
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:layout_marginLeft="3pt"
                android:layout_marginRight="3pt"
                android:id="@+id/index_linearLayout_Overlay2"
                android:focusable="true" 
               android:layout_gravity="right">
            <TextView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center"
                    android:textSize="8pt" android:textStyle="bold"
                    android:textColor="#/>
        </FrameLayout>>
</FrameLayout>

This xml represents a ListView Item. Now I want that the two FrameLayouts called Overlay and Overlay2 stretch above the hole content and set a transparent background. This Works for Api > 10 great but if i try this API <= 10 the two Layouts doesn't fill the Parent. It would be great if someone could help me.

4

0 回答 0