여기는 제 코드입니다. 이클립스 내부에서 편집하면 그래픽 레이아웃 창에 radia와 television 두 개의 버튼이 포함 된 가운데 레이아웃이 표시됩니다. 하지만 전화 나 태블릿에서 실행하면 중간 레이아웃이 사라지고 표시되지 않습니다. 어떤 종류의 도움이라도 제 코드입니다.상대적 레이아웃 안의 LinerLayout이 보이지 않습니다.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:android1="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android1:orientation="vertical" >
<RelativeLayout
android1:id="@+id/outerLay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android1:background="@drawable/header" >
<Button
android1:id="@+id/logout"
style="?android:attr/buttonStyleSmall"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android1:layout_alignBottom="@+id/button6"
android1:layout_alignParentLeft="true"
android1:layout_alignParentTop="true"
android1:background="@drawable/logout_a"
android1:onClick="logoutClick"
android1:textStyle="normal" />
<Button
android1:id="@+id/button6"
style="?android:attr/buttonStyleSmall"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android1:layout_alignParentRight="true"
android1:layout_alignParentTop="true"
android1:background="@drawable/search_a" />
<LinearLayout
android1:id="@+id/innerlay"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android1:layout_alignBottom="@+id/button6"
android1:layout_alignParentTop="true"
android1:layout_centerHorizontal="true"
android1:gravity="center"
android1:orientation="horizontal" >
<Button
android1:id="@+id/television"
style="?android:attr/buttonStyleSmall"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android1:background="@drawable/television_a"
android1:onClick="television" />
<Button
android1:id="@+id/radio"
style="?android:attr/buttonStyleSmall"
android1:layout_width="wrap_content"
android1:layout_height="wrap_content"
android1:background="@drawable/radio_b"
android1:onClick="radio" />
</LinearLayout>
</RelativeLayout>
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content" >
</ListView>
hierarchyviewer는 뭐라고 말합니까? – njzk2
나는 계층 구조보기를 체크하지 않았지만 그래픽 레이아웃은 각 컨트롤을 배치 한대로 모든 것을 보여줍니다. – Munazza
'layout = "@ layout/activity_main"'이 레이아웃을 공유합니까? 또한 우리 * hierarchyviewer * 알아. – RobinHood