Search code examples
androidfirebasefirebase-authenticationfirebaseui

How to add logo in firebase ui authentication in android?


I'm not able to set custom logo of my app at the signIn activity, while using firebase auth UI?


Solution

  • You can set the logo using .setLogo() property of AuthUI.getInstance().

    Github firebase authUI Doc.

    AuthUI.getInstance()
                            .createSignInIntentBuilder()
                            .setTheme(R.style.FirebaseLoginTheme)
                            .setLogo(R.drawable.logo)
                            .setIsSmartLockEnabled(!BuildConfig.DEBUG)
                            .setProviders(providers)
                            .build(),
                    RC_SIGN_IN);