Closed nglauber closed 2 years ago
I think this might be the reason, it is hard to say without a complete example though. Can you provide a link to the repository of the project from the video above? If not just fork the sample and change it to match your code as close as possible. Then I can have a look at it ;)
Thanks for replying @B3nedikt. Here's the link for the repo: https://github.com/nglauber/DemoPhilology
You're welcome :)
Regarding the menu options: You are currently setting these with the MenuInflater
which is not supported. The supported way would be to either update them in code or set the menu through the layout XML like demonstrated here: Reword example
Regarding the Toolbar title: The navigation library is calling Toolbar.setTitle
with the CharSequence parameter not with the id here. This is currently not supported as well. You can however also just set this in code or on the layout XML.
Does this help you? If you need support for MenuInflater
or setting the Toolbar title as a CharSequence this would be technically possible, just a lot of work to implement. If you would need this feel free to implement it, I accept PRs for my libraries ;)
I created a new project in Android Studio Chipmunk | 2021.2.1
The project has now the following dependencies:
I also created the maps for English and Portuguese.
and as described in the docs, I added this:
The texts in fragments layouts are working fine, but the title and menu option are no displaying the correct text. As you can see below, the title and menu option are in English and the rest of the texts are in Portuguese.
Is this might be happening because the title is set by the navigation library?