[Bug] [Android] Shell.TitleView incorrect positioning of content
See original GitHub issueDescription
Adding a Custom Shell.TitleView to a page results in incorrect positioning of the content. Adding a Shell.TitleView according to the Xamarin.Forms documentation, the image should be displayed horizontally and vertically centered. Instead, it is positioned too far to the right and bottom. A repro is available here
Actual behaviour

Expected behaviour
The added image is a menu icon (same as the one for the navigation, just in black). The image should be vertically and horizontally centered in the titlebar.
Steps to Reproduce
- Create new Maui project
- Add new Xaml-Page
- Add
Shell.TitleViewto the newly created page - Add a
Imageto theShell.TitleViewand addHorizontalOptions="Center"VerticalOptions="Center" - Replace content of
MainPagewith aShell - Add the xml-Namespace
xmlns:local="clr-namespace:MauiApp1" - Add
FlyoutItemto theShellwithShellContentContentTemplate="{DataTemplate local:HomePage}"
Version with bug
Preview 10 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11/API 30
Did you find any workaround?
No response
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:15 (1 by maintainers)
Top Results From Across the Web
[Bug] [Android] Shell.TitleView incorrect positioning of content
NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop. - [Bug] [Android] ......
Read more >Xamarin Forms Shell TitleView does not center image
You can see that the content of Title View , And the icon already been center in Title View .Because of existing meun...
Read more >Every other tab in Shell doesn't show Shell.TitleView on ...
Hello, I have a pure MAUI app which targets only Android. This are the contents my Shell.xaml file:
Read more >Xamarin.Forms 5.0.0.2244 (5.0.0 Service Release 7) ...
Title on iOS, but fine on Android." (#13319); GitHub #13310 - "[Bug] Shell.TitleView no longer displays a title view on a ContentPage ...
Read more >Maui navigation and TitleView is very confusing
I am trying to customize the TitleView in a Maui app. 1st - I am trying to get the page title but this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hello, I have the same problem. Is there a solution for that? it can’t be that you move something like that to NET7
They want Maui to start now and the important issues are being postponed
How is this still an issue almost a year and half later🤔 ? The above is not a working solution if the objective is to center the title text horizontally aligned to the page.
Apart from the above mentioned offset (perhaps created by an unimplemented flyoutmenu?!), back button visibility can also offset the view:

So if we were to center the title to the page using
Shell.TitleView(as far as I can tell) not only would we have to offset the error-looking leftside offset but also according to whether or not the back button is visible.Our current workaround is to disable
Shell.TitleViewand re-implement backbutton behaviour 😏