James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Custom Renderer

Dynamically Changing Xamarin.Forms Tab Icons When Selected

Spicing up your Xamarin.Forms tab can easily be done in a few ways. You can add tint color in Android when the user deselects a tab [https://montemagno.com/xamarin-forms-android-selected-and-unselected-tab-colors], which can also be done in iOS in addition to a full swap of a selected image [https://montemagno.com/tintcolor-selectedimage-xamarin-forms-ios]. It was recently pointed out to me that these blogs highlighted a way of adding back a bit of nativeness, but didn't answer a different…

James Montemagno James Montemagno

Xamarin.Forms Android Selected & Unselected Tab Colors

I get a lot of questions about Xamarin.Forms. One of my most popular blogs was about spicing upiOS tabs with selected and unselected tab colors [http://motzcod.es/post/138225183932/tintcolor-selectedimage-xamarin-forms-ios], and since that day developers have been asking about Android. Well, to be honest I was always against adding icons to material tabs in Android, but developers want to do it, so here is how you can, with a Custom Renderer for a Tabbed Page. Here is what it will look like at t…

James Montemagno James Montemagno

Adding a Disclosure Indicator Accessory to Xamarin.Forms ViewCells

Xamarin.Forms has a super powerful ListView. You can easily add custom cells, pull to refresh, headers, footers, and even sections with just a few lines of code. A while ago I talked about how to easily group items [http://motzcod.es/post/94643411707/enhancing-xamarinforms-listview-with-grouping] to display section headers in the ListView. You get a great native styling of section headers with just a few simple lines of code. One thing I have noticed and has bothered me specifically with iOS is…

James Montemagno James Montemagno