我正在运行我创建的使用Google Maps API的应用程序。Android模拟器v/s电话
它在仿真器上按预期工作,但我使用的是图形,但似乎以不同的方式在我的手机上渲染。
请参看下面的图片作为参考
这里的原因被观察到不同相同的图像我activity.xml文件
<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" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:padding="@dimen/padding_medium"
android:text="@string/hello_world"
tools:context=".MainActivity" />
<TextView
android:id="@+id/textView1"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:background="@drawable/repeat"
android:layout_marginTop="0dp"
android:text=""
android:textAppearance="?android:attr/textAppearanceLarge" />
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_marginTop="30dp"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="--private--" />
</RelativeLayout>
- 一个在设备上,还有一个在模拟器上?