基于android设备的无组织imagebutton仿真器
我正在用一些图像按钮开发xml,图像按钮在emulator中正确显示,但在emulator上它是无序的 设备(例如galaxy fit) 如emulator和galaxy fit中所述 我能做什么 这是我的xml:基于android设备的无组织imagebutton仿真器,android,Android,我正在用一些图像按钮开发xml,图像按钮在emulator中正确显示,但在emulator上它是无序的 设备(例如galaxy fit) 如emulator和galaxy fit中所述 我能做什么 这是我的xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Main"
android:background="@drawable/backmain" >
<ImageButton
android:id="@+id/btnfehrest"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="53dp"
android:background="@null"
android:src="@drawable/fehrest" />
<ImageButton
android:id="@+id/btndarbareh"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/btnfehrest"
android:layout_marginLeft="21dp"
android:background="@null"
android:src="@drawable/darbareh" />
<ImageButton
android:id="@+id/btnmahsulat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignTop="@+id/btndarbareh"
android:layout_marginRight="17dp"
android:background="@null"
android:src="@drawable/mahsulat" />
<ImageButton
android:id="@+id/btnkhoruj"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/btndarbareh"
android:layout_centerHorizontal="true"
android:background="@null"
android:src="@drawable/khoruj" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/main"
android:scaleType="fitXY" />
</FrameLayout>
</RelativeLayout>
删除所有布局。\u它将起作用