Android Question Firebase UI Auth Screen customization

Anser

Well-Known Member
Licensed User
Hi,

I am referring to the this lib https://www.b4x.com/android/forum/t...imension-in-authentication.87580/#post-554935

I could compile and test the sample project. It is working fine.

Now, I would like to know how to change the title of the Firebase UI Auth screen. For eg here is the screen snapshot of the screen. Now how would I change the App's title ie instead of the ui_flow, how could I put my app's name ?

FirebaseAuthUI.png


In the above picture please note the title "UI_flow".

Referring the site https://github.com/firebase/FirebaseUI-Android/blob/master/auth/README.md , I understand that it is something to do with the string.xml available in the folder res.FirebaseUI, but when I checked the string.xml, the same file is available in almost all the folders that start with the name values ie almost 88 folders. I don't think that going and editing a particular value in the string.xml file in all the 88 folders is the way to go. There should be some way that I am not aware of

This is what I see when I open the string.xml
B4X:
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="app_name" translatable="false" tools:ignore="ResourceName">ui_flow</string>

    <!-- Common -->
    <string name="fui_default_toolbar_title" translatable="false">@string/app_name</string>
    <string name="fui_progress_dialog_loading" translation_description="Loading text in dialog">Loading…</string>
    <string name="fui_sign_in_default" translation_description="Button text to sign in">Sign in</string>
    <string name="fui_general_error" translation_description="Toast text flashing general error">An error has occurred.</string>

Please forgive my ignorance. I did not see a way in the library to set the Title or other customizations. May be I am wrong, couldn't find one.

Any help will be appreciated.
 

DonManfred

Expert
Licensed User
Now, I would like to know how to change the title of the Firebase UI Auth screen. For eg here is the screen snapshot of the screen. Now how would I change the App's title ie instead of the ui_flow, how could I put my app's name ?
check the xml inside the res folder you added....
 
Upvote 0

Anser

Well-Known Member
Licensed User
OK. Editing the res.FirebaseUI\values\String.xml and changing the value as follows
<string name="app_name" translatable="false" tools:ignore="ResourceName">Your App Name</string>

Just wanted to make sure that, whether there is already some way to change the title within the library itself via code
 
Upvote 0
Top