에뮬레이터를 기반으로 레이아웃을 만들었지 만 실제 장치에서 내 앱을 실행했는데 모든 레이아웃이 엉망입니다. 나는 그것을 고치는 법을 모른다. 여기 내 XML 파일에 대한 코드,안드로이드 레이아웃이 전화에 엉망이되었습니다
<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/mainback" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="23dip"
android:layout_marginRight="15dip"
android:layout_marginTop="255dip"
android:orientation="vertical" >
<TextView
android:layout_width="276dp"
android:layout_height="132dp"
android:textSize="15dp"
android:gravity="center_vertical"
android:text="some text"
android:textColor="#4C2016"/>
<Button
android:id="@+id/special"
android:layout_width="131dp"
android:layout_height="40dp"
android:background="@drawable/cc"
android:layout_marginTop="20dip"
android:layout_marginLeft="75dip"
android:textSize="17dp"
android:textStyle="bold"
android:text="Specials"
android:textColor="#F6E6C6" />
</LinearLayout>
이다
`
그것은 좋지 않을까 어떤 하나의 방법이 코드 여기
를 해결하는 말해 줄 수있다는 그것이 어떻게 생겼는지의 스냅 샷 xml 파일
이 그것을 전화처럼 보이는 방법이다,
,화상과 오렌지의 텍스트 배경 이미지 및 텍스트 뷰 및 뷰에 추가하는 버튼의 일부이다.
보다 낮은 API를 대상으로하는 경우 'fill_parent'와 'match_parent'를 대체? 에뮬레이터와 비교하여 레이아웃의 문제점을 정확하게 알려줄 수 있습니까? –
"messed up"을 정의해야합니다. 그렇지 않으면 ... "엉망이 된"것이 무엇을 의미하는지 알지 못합니다. – Jack
정확하게 엉망이 된 것을 게시 할 수 있습니까? 어떻게보아야합니까? –