我想在Google Map上实现自由绘图的自定义模块.在实现方面,我发现Google Map onDrag()
回调并始终覆盖我的自定义onDrag()
函数.我不太确定如何使用我FrameLayout
onDrag()
来覆盖地图点击和拖动动作.
这是我的工作:
XML:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:orientation="vertical"
tools:context=".MainActivity" >
<TextView
android:id="@+id/locinfo"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.example.androidmapsv2.CustomMapFragment" >
</fragment>
<FrameLayout
android:id="@+id/fram_map"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</FrameLayout>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
CustomMapFragment.java
package com.example.androidmapsv2;
import com.google.android.gms.maps.MapFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class CustomMapFragment extends MapFragment {
public View mOriginalContentView;
public MapWrapperLayout mMapWrapperLayout;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {
mOriginalContentView = super.onCreateView(inflater, …
Run Code Online (Sandbox Code Playgroud) 在通过Play商店内部测试版面向少数内部用户发布了我们的应用后,我们转向了封闭式Alpha测试。但是,对于我们的某些Alpha测试人员而言,该应用程序的新更新完全不可见。所有这些用户也选择加入此测试轨道,但是,当他们访问Play商店应用上的应用列表时,他们看到的是较旧的版本,而不是几个小时前发布的版本。
其中一些用户甚至看到一周前发布的更新!即使对于有权访问Play控制台的开发人员之一,当尝试转到应用程序列表时,该更新通知上线了,也只能看到较旧的版本。令人惊讶的是,这些相同的用户可以在Play商店的网络版本上看到最新版本。
我已根据此SO问题尝试了多种解决方案,例如Play Store Force Stop +缓存清除+数据清除+网络更改等。
我使用 Android Studio 稳定版本(当前为“3.5.3”)用于我的主要开发目的。除此之外,我还侧载了 Android Studio“4.0”来测试它承诺的所有新功能。我希望将此安装更新到最新的 Canary。但是,当我在此安装中“检查更新...”时,它显示版本“3.5 Beta 5”的更新。
与“4.0 Canary 4”相比,构建号更高,但是,这对我来说不是降级吗?我的印象是,主要发行版本将对其构建进行相应编号,以避免这种情况。如何将我的 AS 4.0 安装更新到最新的 4.0 Canary?
操作系统:macOS Mojave 10.14.6