Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Custom Navigation Bar rendering on Android

$
0
0

Hi,

I am building a Xamarin.Forms application and need to create quite a complicated custom navigation bar. The first part requires me to be able to place a button on the top left side of the navigation bar (where the back button usually is) as well as keeping another button on the right. The second part requires me to have what is essentially an iOS Segment Control in the middle of the navigation bar and keep the button on the top left and top right as well. This segment control is just 2 buttons that when clicked on will switch between 2 different views on the page.

I managed this functionality on iOS but haven't managed to get anywhere near it on Android. On iOS I was able to get the toolbar items from the .Forms page and split them up in to LeftToolbarButtons and RightToolbarButtons, as well as positioning a segment control in the titleview area that is offered by iOS. From playing around with custom renderers for Android, there is nothing similar to a 'LeftToolbarButtons' list or a TitleView area in the middle of the Navigation bar that I can set custom views to.

Surely this can't be something that only I have come across, yet I can't find any information on being able to customise the Navigation bar to this level of complexity on Android using Xamarin.Forms. All I have been able to find is how to change the background colour which is pretty useless for me right now.

Thanks.


Viewing all articles
Browse latest Browse all 77050

Trending Articles