用android中的自定义图像替换Google Plus登录按钮
我正在将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
我想用我的自定义图标更改我的登录按钮图像
如何做到这一点?很简单,使用指南,您可以使用简单按钮
<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();
}