This is a snippet to customize Firebase-Ui-auth login. Thanks to the wonderfull people in Firebase-Ui.
- Download and add to your project this files
- Use the colors provided in
colors.xml
- Copy paste the themes in the
styles.xml
- Apply the theme and the logo in the java as the example in
LoginActivity.java
This are the size of the background in pixels, so you can create your own:
- mdpi: 360 x 640
- hpdi: 540 x 960
- xhdpi: 720 x 1280
- xxhdpi: 1080 x 1920
- xxxhdpi: 1440 x 2560
I'm still working in a solution to support correctly other devices like tablets, my first thought contemplate using the dimens
still not sure if it is gonna be a dirty but quick fix
@mandar10 I don't think you can because each button is added programmatically inside a LinearLayout.
You can see the Activity here jump to line 130
And you can see the layout here.
In any case, I would try by aiming at the button style, by example, this is the email button. So by creating in your own styles a
style="@style/FirebaseUI.Button.AccountChooser.EmailButton"
you would override what is set by the library. Give it a try and let us all know.