【问题标题】:Android - MapView TranslationAnimation causes rendering faultsAndroid - MapView TranslationAnimation 导致渲染错误
【发布时间】:2013-10-23 20:44:51
【问题描述】:

我在 MapView 上有一个 EditText。现在,当文本被编辑时,我希望地图视图越过 EditText 元素(通过 TranslateAnimation)。地图视图的转换工作,但似乎地图视图不是为翻译而设计的,因为翻译后无法在没有呈现错误的情况下使用地图视图导航。

任何人有同样的问题知道解决方案或解决方法吗?

谢谢

【问题讨论】:

    标签: android android-mapview translate-animation


    【解决方案1】:

    尝试用视图包装所有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>
    

    如果这对您有帮助,请告诉我。希望对您有所帮助:]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-13
      • 1970-01-01
      • 1970-01-01
      • 2019-11-02
      • 1970-01-01
      • 2016-07-24
      • 2020-08-23
      • 2017-09-18
      相关资源
      最近更新 更多