Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
用android中的自定义图像替换Google Plus登录按钮_Android_Google Plus - Fatal编程技术网

用android中的自定义图像替换Google Plus登录按钮

用android中的自定义图像替换Google Plus登录按钮,android,google-plus,Android,Google Plus,我正在将Google Plus登录集成到我的应用程序中。 我想用我的自定义图标更改我的登录按钮图像 如何做到这一点?很简单,使用指南,您可以使用简单按钮 <Button android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true" android:te

我正在将Google Plus登录集成到我的应用程序中。
我想用我的自定义图标更改我的登录按钮图像


如何做到这一点?

很简单,使用指南,您可以使用简单按钮

<Button
   android:id="@+id/button"
   android:layout_width="wrap_content"
   android:layout_height="wrap_content"
   android:layout_centerHorizontal="true"
   android:text="@string/common_signin_button_text_long" />

检查这个链接@buckoomarianne这里有另一个选项来做同样的事情
 if (mGoogleApiClient.isConnected()) {
      Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
      mGoogleApiClient.disconnect();
      mGoogleApiClient.connect();
    }