2013-01-31 10 views

答えて

4

クイックや汚れ:

<?xml version="1.0" encoding="utf-8"?> 
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:color="#000000"> 
<View 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@drawable/rectangle" 
    android:layout_margin="20dp" 
    /> 
<RelativeLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 
    <TextView 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_centerHorizontal="true" 
     android:background="#000000" 
     android:layout_marginTop="10dp" 
     android:text="TITLE!" 
     android:textColor="#ffffff"/> 
</RelativeLayout> 

</FrameLayout> 

そして@drawable/rectangleは、このような描画可能rectangle.xmlファイルである:私はこれが迅速であるかを確認

<?xml version="1.0" encoding="utf-8"?> 
<shape xmlns:android="http://schemas.android.com/apk/res/android" 
    android:shape="rectangle"> 
<solid android:color="@android:color/transparent"/> 
<stroke android:width="2dip" android:color="#ffffff"/> 
</shape> 
+0

が、どのようにそれが汚れているのですか?これはタグのためのものではありませんか?あなたは別のタイトルレイアウトを定義して、それを上部に含めてもいいと思っていました

+0

これは確かに別のレイアウトかもしれません。 – anthropomo

関連する問題