我在MapView上有一个EditText。现在编辑文本时,我希望地图视图覆盖EditText元素(通过TranslateAnimation)。地图视图的转换有效,但似乎地图视图不是为了翻译而设计的,因为在翻译之后无法使用地图视图导航而不会出现错误。
任何有同样问题的人都知道解决方案或有解决方法吗?
由于
答案 0 :(得分:0)
尝试用视图包装所有MapView
,如下所示:
<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" >
<com.google.android.gms.maps.MapView
android:id="@+id/sherlock_map"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<View
android:id="@+id/dumberView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/transparent" />
</RelativeLayout>
如果这有助于您,请告诉我。希望它有所帮助:]