Replace Google Plus Login Button with Custom Image in Android

I am integrating Google Plus login in my app. I want to change the login button image with my custom icon.

How to do it?

+3


source to share


1 answer


Simple, using the guide from Google+ Login , you can use a 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();
    }

      

+5


source







All Articles