2013-10-01 87 views
-6

我是开发android。现在我设计这种布局时遇到了问题!你们能帮我解决这个问题吗!如何设计布局其他填充

谢谢! !

干杯! !

我画了它!

enter image description here

+2

你想要什么帮助?而***你有什么尝试***? –

+0

Hi @Rafi Kamal。我想设计布局? – irist

回答

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> 
+0

嗨@Harish Godara!非常感谢 !这对我很有用! – irist