code: public void setStyle(AuthConfig config, @AuthMode int mode) {
          final Drawable logo = config.getLogo(getContext());
          final int backgroundColor = config.getBackgroundColor(getContext());
          Drawable touchBackground = getTouchFeedbackBackground(backgroundColor, smallSize ? ViewUtils.Corners.ALL : ViewUtils.Corners.ONLY_RIGHT);
  
          /*
           * Branding guidelines command we remove the padding for Google logo.
           * Since it's the only exception to the rule, handle it this way.
           *
           * Source: https://developers.google.com/identity/branding-guidelines
           */
          if (STRATEGY_GOOGLE_OAUTH2.equalsIgnoreCase(config.getConnection().getStrategy())) {
              icon.setPadding(0, 0, 0, 0);
          }
          icon.setImageDrawable(logo);
          if (smallSize) {
              ViewUtils.setBackground(icon, touchBackground);
          } else {
              final String name = config.getName(getContext());
              ShapeDrawable leftBackground = ViewUtils.getRoundedBackground(this, backgroundColor, ViewUtils.Corners.ONLY_LEFT);
              final String prefixFormat = getResources().getString(mode == AuthMode.LOG_IN ? R.string.com_auth0_lock_social_log_in : R.string.com_auth0_lock_social_sign_up);
              title.setText(String.format(prefixFormat, name));
              ViewUtils.setBackground(icon, leftBackground);
              ViewUtils.setBackground(title, touchBackground);
          }
      }
docs: Configures the button with the given connection information.
  
  @param config contains the connection information.
  @param mode   the current button mode. Used to prefix the title with "Log In" or "Sign Up".