Open blaze6950 opened 6 years ago
@blaze6950 Thanks for requesting this feature.
Observation: This seems to be the fundamental difference b/w the default Facebook and Google buttons.
If you see the default Google button as well, the text is centred from the point where the Google logo boundary ends till the end of the button as shown below (If the length of that part is 500 dp, then see around the 250 dp mark, the 'Google' text is centred).
Facebook's default button seem to centring the text within the whole button. (See around 290 dp mark for the Facebook button, the 'Facebook' text is centred within the whole button and not just the part after the logo)
Potential Solution:
Adhering to the padding guidelines mentioned on the official Google SignIn button branding guidelines, we can try to decrease the padding on left equal to the width of the Google logo. This would make it appear centred but we'll have to make sure the min padding b/w the logo and the text.
I will create a feature request and will try to take out time to work on it. Feel free to open a pull request with a fix. :)
I ran into the problem that if the width of the button is large, the text is not centered on the button, but centered if you count from the end of the logo to the end of the button. Is there any way to fix this? I hope, you understood me P.S. I want the text to be centered, like the facebook button![default](https://user-images.githubusercontent.com/32897401/38783239-3cb16808-4108-11e8-9165-c2b9cd0c0e3d.PNG)