I cant for the life of me find out how to change the TabbedPage Tab Colors on Forms 1.4+ using an implicit style in code.
I can set the BarBackgroundColor on a NavigationPage but the same options dont exist on TabbedPages.
I think I need to know the new Style(typeof(OBJECT)) but I dont know what the proper OBJECT is to put in there.
Anyone have any suggestions? I cant figure out how to change it in a custom renderer either as Android.App.ActionBar.Tab is obsolete now.
Thanks
M
Posts
I used custom tabs in my opensource. You can change color and placing as per your need https://github.com/asthanarht/CPXamarin
Thanks @rohitasthana interesting idea but I was hoping to simply use the existing TabbedPage.
No one knows where the Android.App.ActionBar.Tab moved to?
Hi @MikeRowley403
To achieve that you need to set themes and styles:
http://jgilfelt.github.io/android-actionbarstylegenerator/
http://android-holo-colors.com/
Those styles lives in the android project, and they are XML files.
In this thread @JohnMiller answered and I complemented it
Hope this helps!
Thanks @MiguelCervantes however I have already read that post and I am trying to determine if this can be done outside of resources and set implicitly in code as above in the NavigationPage.
The sad news is you can't. If you want to do it in code you need a custom renderer.
Perfect, that is exactly what I came to this morning as well. However I cant figure out what to change in the Custom Renderer as Android.App.ActionBar.Tab is obsolete. I am looking for what I need to change in the custom renderer to change the tab colors.
Did this get resolved?