小编Zeh*_*n12的帖子

Google文档/云端硬盘 - 标题编号

是否可以在Google文档/云端硬盘文档中对标题进行编号?

google-docs google-apps-script google-drive-api

78
推荐指数
4
解决办法
5万
查看次数

适用于Android的Google+平台 - getCurrentPerson

我使用的是适用于Android的Google+平台

PlusClient plusClient = 
  new PlusClient.Builder(this, this, this).setScopes(Scopes.PLUS_LOGIN).build();
Run Code Online (Sandbox Code Playgroud)

在onConnected-Listener中,我想读取登录用户的数据

@Override
public void onConnected() {
  super.onConnected();    
  Person person = plusClient.getCurrentPerson();
}
Run Code Online (Sandbox Code Playgroud)

方法调用getCurrentPerson返回null.有没有人设法读取用户数据?

android

6
推荐指数
1
解决办法
2118
查看次数

gwt jsni document.documentElement.style.height

我尝试使用gwt jsni 从此链接/sf/answers/637028451/调用代码 .

我的方法看起来像

  public static native void hideAddressBar() /*-{
        if (document.documentElement.scrollHeight < $wnd.outerHeight * $wnd.devicePixelRatio) {
            document.documentElement.style.height = ($wnd.outerHeight * $wnd.devicePixelRatio) + 'px';
        }
        setTimeout($wnd.scrollTo(1, 1), 0);
  }-*/;
Run Code Online (Sandbox Code Playgroud)

但是当我打电话给它时,没有任何反应.

我的问题:是不是可以设置document.documentElement.style.heightgwt jsni 的值?

javascript java gwt jsni

0
推荐指数
1
解决办法
1903
查看次数