如何设计布局其他填充

时间:2013-10-01 09:52:40

标签: android android-layout

我是开发android。现在我在设计这个布局时遇到了问题!你能帮我解决这个问题吗?

谢谢! !

干杯! !

我画了它!

enter image description here

2 个答案:

答案 0 :(得分:1)

试试这个,使用Frame Layout您将获得结果。 Click here more info about framelayout

答案 1 :(得分:0)

试试这个:

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

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/RelativeLayout1"
    android:layout_width="fill_parent"
    android:layout_height="match_parent"
    android:clickable="true"
    android:orientation="vertical" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="match_parent"
        android:layout_height="37dip"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:background="#123457"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_alignParentRight="true"
        android:layout_below="@+id/textView1"
        android:layout_margin="37dip"
        android:background="#9d9d9d" >

       <TextView
            android:id="@+id/textView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Some Text"
            android:textAppearance="?android:attr/textAppearanceLarge" />

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="97dip"
        android:layout_alignParentTop="true"
        android:layout_centerHorizontal="true"
        android:layout_marginLeft="17dip"
        android:layout_marginRight="17dip"
        android:layout_marginTop="137dip"
        android:background="#3d3d3d"
        android:orientation="vertical" >

    </LinearLayout>

</RelativeLayout>