code: private void showFinal(boolean show, Activity activity, HuaweiApiClient client) {
  
          // 保存当前浮标显示状态，以便出现异常浮标消失后，能够恢复
          isCurFloatShow = show;
  
          Activity curActivity = activity!=null ? activity : ActivityMgr.INST.getLastActivity();
  
          // 取得当前 activity 用于展示浮标
          if (curActivity == null) {
              HMSAgentLog.e("activity is null");
              return;
          }
  
          if (show) {
              if (client == null || !client.isConnected()) {
                  HMSAgentLog.e("client is invalid");
                  ApiClientMgr.INST.connect(new EmptyConnectCallback("try connect end when show float:"), false);
                  return;
              }
  
              HMSAgentLog.d("show begin");
              PendingResult<ShowFloatWindowResult> pendingRst = HuaweiGame.HuaweiGameApi.showFloatWindow(client, curActivity);
              pendingRst.setResultCallback(new ShowFloatWindowCallBack());
          } else {
              HMSAgentLog.d("hide");
              HuaweiGame.HuaweiGameApi.hideFloatWindow(client, curActivity);
          }
      }
docs: 最终调用接口显示/隐藏浮标
  @param show 是否显示浮标
  @param activity 当前界面的activity
  @param client HuaweiApiClient实例