protected void setGoogleSigninCaption(SignInButton btnGoogleSignin) { for (int i = 0; i < btnGoogleSignin.getChildCount(); i++) { View v = btnGoogleSignin.getChildAt(i); if (v instanceof TextView) { TextView caption = (TextView) v; caption.setText(this.getActivity().getString(R.string.google_signin)); caption.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 16); return; } } }