James Montemagno - Page 33

Live, Love, Bike, and Code.


Super Roboto Fonts! Custom LayoutInflater.IFactory in Xamarin.Android

So last week I wrote about and showed off some custom Robot Fonts using my RobotoTextView which you can find on GitHub. However the great Stuart Lodge challenged me to make ti a bit more generic so it could be applied to any control that derives from TextView. This seemed like a cool idea and didn’t have the foggiest idea of how to do this. Stuart told me to go checkout the LayoutInflator.IFactory for a custom …

James Montemagno

Beautiful Android Compat Roboto Fonts in Xamarin.Android

In android 4.1 and 4.2 Google did something amazing, which was add the roboto fonts as a default font family that you can switch between. It is as easy as setting “sans-serif”, “sans-serif-light”, “sans-serif-condensed”, and “sans-serif-thin” as the android:FontFamily. However the obvious issue here is that this is only available in 4.1+ (with thin only being available in 4.2). So if you want to target older …

James Montemagno

Effective Navigation in Xamarin.Android: Part 1 - Navigation Drawer

When designing your app you have probably wondered about what type of navigation is the best to use. Dashboards, navigation lists, spinner drop downs, tabs, and fly out menus are all still prevalent and valid choices, however, Google has recently made a huge push to use their new standard Navigation Drawer control. So what is a Navigation Drawer? Similar to a flyout menu made famous by Facebook, the Navigation Drawer …

James Montemagno

MvxUIRefreshControl for #MvvmCross

Implementing MvxTableViews and MvxCollectionViews are extremely simple. From binding to accessory or cell clicks, to implementing advanced logic for custom cells they just plain work in MvvmCross. However, today I ran into one issue that needed to be solved, an Mvx binding for UIRefreshControl. <br./></br.> In iOS6+ land adding pull to refresh is EXTREMELY simple. You can read all about it, but basically …

James Montemagno

NuGets Everywhere! VS or XS!

Alright so a quick follow up to that huge blog I just wrote about PCLs. So PCLs are great for your core, but are also great because you can share PCLs with people and they will work everywhere. On Visual Studio there is a great Nuget Package Manager already that you can grab and install. If you are using Xamarin Studio you have a pretty great option as well with THIS Addin

James Montemagno

Xamarin + PCL + MAC Xamarin Studio + Visual Studio #LetsDoThis

This blog is now obsolete as official PCL support has been added to Xamarin.Android and Xamarin.iOS for both Visual Studio and Xamarin Studio. There is no longer a need to do any file copying or anything fancy, simply hit File->New Project -> PCL. I have a webinar: you can find here So last night at the Xamarin drinkup in Bellevue there was a lot of discussion about PCL and also bout MVVM frameworks such as the …

James Montemagno

Some more code!

So before motzcod.es existed I did a lot of blog posting about code and such over on motzwrit.es. As tumblr doesn’t allow a good way to transition posts I just wanted to create a nice archive here: Windows Phone: Amazing - 1 Feature = Windows Phone Toolkit Windows Store: Re-Use your WP Isolated Storage Settings in Windows Store Apps Android/Xamarin.Andriod: The APK Dilema: To Split or Not to Split Making Theme.Holo …

James Montemagno

ProgressButton for Xamarin.Android

I was browsing through some Android Views and stumbled across a very familiar view, the ProgressButton. I have seen this plenty of times in just about every Google Play app. It is very simple with multiple arches of color and a drawable resource to let you know if you have pinned it or not. So last night and this morning I decided to port it over to Xamarin.Android. It is extremely easy to use as part of my MonoDroid …

James Montemagno
James Montemagno
Author

James Montemagno

James Montemagno is a Principal Lead Program Manager for Developer Community at Microsoft. He has been a .NET developer since 2005, working in a wide range of industries including game development, printer software, and web services. Live, Love, Bike, and Code.

Milli the dog peeking up from the bottom of the page