2011-03-17 3 views
1

좋아, 나는 다소 복잡한 것을하고 싶다.상단 레이아웃의 레이아웃, 중심 배경 이미지에 대한 레이아웃

첫 번째 선형 레이아웃에 드로어 블을 넣고 싶습니다. 그런 다음 첫 번째 레이아웃 상단에 다른 드로어 블을 두 번째로 배치하고 중심에 배치하고 싶습니다. 그 이유는 가로로 전환 할 때 아이콘이 늘어나지 않게하기 위해서입니다.

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="fill_parent" android:layout_height="fill_parent" 
android:orientation="vertical" android:background="@drawable/default1" 

<LinearLayout android:layout_width="wrap_content" 
    android:layout_height="wrap_content" android:orientation="vertical" 
    android:background="@drawable/icon1" android:layout_gravity="center" 
</LinearLayout> 
</LinearLayout> 

화면 상단에 두 번째 레이아웃 스틱의 아이콘을 중심으로되지 않습니다 이것은 내가 지금까지있는 것입니다. 감사!

답변

1

변화 모든 fill_parentwrap_content

관련 문제