-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Allow users to set a custom toolbar title. #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@paolorotolo thanks for the contribution. A few things:
|
Hi @samtstern, thanks for your reply.
Another example:
Please let me know if there are more activities that I missed that adopt the same behavior. |
Ok I went through each Activity and listed the explicit title they have, if any:
I think to solve this once and for all we should go a little farther than your initial proposal and do the following:
I think this will make it easy for anyone to override any title, while making the titles in general more predictable and discoverable for someone reading the code. If that sounds tedious, I am happy to write the PR myself. But if you still want to contribute, update this PR and I will review the change. |
Sounds good. I'm on it! |
@paolorotolo awesome! Also apologies for the merge conflicts, hope it's not too hairy. |
@samtstern Done. I also ran Android Studio's code reformat on |
@paolorotolo this looks great, thank you! |
great is it available now for web ui as well |
FirebaseUI right now uses the app's name to set the Toolbar title in
AuthMethodPickerActivity
andEmailHintContainerActivity
.This pull allows users to set their own custom title using
<string name="toolbar_title">"Custom title"</string>
in their app's
strings.xml
.Result example:
