1. <FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/top_" />
2. <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageButton
android:id="@+id/imageButton3"
android:layout_width="40dp"
android:layout_height="55dp"
android:layout_gravity="center"
android:layout_marginBottom="70dp"
android:layout_marginRight="5dp"
android:padding="0sp"
android:scaleType="centerCrop"
android:src="@drawable/power_1" />
</FrameLayout>
3. <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageButton
android:id="@+id/imageButton1"
android:layout_width="45dp"
android:layout_height="70dp"
android:layout_marginLeft="53dp"
android:layout_marginTop="100dp"
android:padding="0sp"
android:scaleType="centerCrop"
android:src="@drawable/ncv_1" />
<ImageButton
android:id="@+id/imageButton2"
android:layout_width="45dp"
android:layout_height="70dp"
android:layout_marginLeft="111dp"
android:layout_marginTop="100dp"
android:padding="0sp"
android:scaleType="centerCrop"
android:src="@drawable/log_1" />
</LinearLayout>
</FrameLayout>
4. <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView2"
android:layout_width="30dp"
android:layout_height="45dp"
android:layout_gravity="bottom|center"
android:layout_marginBottom="115dp"
android:layout_marginRight="59dp"
android:src="@drawable/s8" />
5. <FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ImageView
android:id="@+id/imageView26"
android:layout_width="20dp"
android:layout_height="15dp"
android:layout_gravity="bottom"
android:layout_marginBottom="40dp"
android:layout_marginLeft="70dp"
android:src="@drawable/battery" />
안녕하세요 , 완전 초짜입니다 ㅠㅅㅠ
저는 주로 xml에서 이렇게 쓰고 있었는데요..
기기마다 크기가 달라서 그런지 이미지도 깨지고 위치도 지맘대로네요 ㅠ
java코딩하면 안그렇다는데...
저위에 있는 소스를 java코딩으로 어떻게 바꾸나요??
코딩으로 해도 그렇습니다.
XML레이아웃 짜는 방법을 다시 해붜보시는게 좋을것 같습니다.