I understand that in Google api itself languages ​​are sewn up, and depending on the system language, the inscription on the button is selected

Thus, the inscription Log In , provided that the language of the system is Hebrew is changed to the same only in Hebrew ...

How can I cancel it and leave only the default value in English?

  • If there is no information on the docks on how to change the text of the button to your own, then try to open the source code of the class and look there - Yuriy SPb
  • one
    And why did you even think that Hebrew-speaking users want to see Log In? - Vladyslav Matviienko 4:04 pm
  • one
    I'm not even sure that Google allows you to do this. It is possible, under license to use, it is forbidden to change this - Vladyslav Matviienko 4:27 pm
  • one
    Probably you can slip the English locale by the condition, but it looks like some kind of dirty hack. - Kota1921
  • @metalurgus may not want to, but according to those instructions it is necessary to do so)) - Aleksey Timoshchenko

1 answer 1

You can draw your own button, write whatever you think is necessary, and call GoogleAPI in the handler. For example:

 public void onClick(View view) { switch (view.getId()) { case R.id.btnGoogleLogin: Intent intent = AccountPicker.newChooseAccountIntent(null, null, new String[]{"com.google"}, false, null, null, null, null); startActivityForResult(intent, Constants.EXTRA.GET_TOKEN); break; } }