Eclipse의 그래픽 레이아웃에서 EditView, TextView 및 버튼을 사용하여 원하는 위치에 놓을 수 있습니다. 하지만 휴대 전화에서 실행하면 다른 위치로 이동합니다. 누군가 내가 그 사람들이 내가 원하는 곳에서 그들을 지킬 수 있도록 도와 줄 수 있습니까?내 앱에서 앱을 실행할 때 레이아웃 변경
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backgroundhdpi" >
<EditText
android:id="@+id/bill"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="100dp"
android:ems="10"
android:inputType="phone"
android:text="Enter Your Bill"
android:textSize="18dip" />
<Button
android:id="@+id/calculateTip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/bill"
android:layout_alignParentBottom="true"
android:layout_marginBottom="40dp"
android:layout_marginLeft="15dp"
android:text="Calculate" />
<TextView
android:id="@+id/tipOwed"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/bill"
android:layout_centerHorizontal="true"
android:layout_marginBottom="123dp"
android:scrollHorizontally="false"
android:text="Time to Tip!"
android:textColor="#2c6f37"
android:textSize="35dip"
android:textStyle="bold" />
</RelativeLayout>
레이아웃 코드를 게시해야합니다. 또한 레이아웃 편집기에서 다른 장치 테마를 사용하여 디자인하는 경우 휴대 전화가 다른 화면 크기/밀도 인 경우 휴대 전화에서 다르게 보일 것입니다. – dennisdrew
방금 내 코드 – user1657178
을 추가했습니다. 원하는 화면과 실제 모습을 스크린 샷으로 보여줄 수 있습니다. – dennisdrew