Android 在具有相同xml布局的不同操作系统上产生不同的结果?

Android 在具有相同xml布局的不同操作系统上产生不同的结果?,android,android-layout,Android,Android Layout,相同的xml布局代码会导致相同分辨率/密度设备上的外观不同。 请参阅下面所附的图片。 有谁能告诉我有什么问题吗? 我用2个textview试过了,但它与所有操作系统都是一致的。唯一的问题是当我使用按钮,然后这个问题就出现了 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_h

相同的xml布局代码会导致相同分辨率/密度设备上的外观不同。 请参阅下面所附的图片。 有谁能告诉我有什么问题吗? 我用2个textview试过了,但它与所有操作系统都是一致的。唯一的问题是当我使用按钮,然后这个问题就出现了

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <Button
        android:id="@+id/btnHello"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:background="@android:color/transparent"
        android:text="@string/hello_world"
        android:textColor="@android:color/white" />

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toLeftOf="@id/btnHello"
        android:paddingLeft="15dp"
        android:text="@string/hello_world" />

</RelativeLayout>


设备的屏幕尺寸是否有所不同?否,相同的屏幕尺寸480x800和相同的密度-240英寸-实际尺寸(以英寸为单位)如何?所有屏幕的尺寸均为4英寸