Replace Google Plus login button with custom image in android
10,082
Its simple, using guideline from Google+ Sign In, you can use simple Button
<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" />
By setting onClickListener
if (mGoogleApiClient.isConnected()) {
Plus.AccountApi.clearDefaultAccount(mGoogleApiClient);
mGoogleApiClient.disconnect();
mGoogleApiClient.connect();
}
Author by
CuckooMarianne
Updated on June 08, 2022Comments
-
CuckooMarianne almost 2 years
I'm integrating Google Plus login in my application.
I want to change my login button image with my custom icon.How to do that?
-
Vishal Chhodwani over 7 years@CuckooMarianne Here is alternate option to do the same stackoverflow.com/a/42061877/6676466