James Montemagno
James Montemagno

Live, Love, Bike, and Code.

Tags


James Montemagno

Live, Love, Bike, and Code.


Animated GIF UIImageView in Xamarin.iOS

A little over a week ago I participate in a Nokia #DVLUP hackathon to create a Windows Phone app and get it published in under 2 weeks. I created something really simple and fun, which was Puppy Kitty Overflow that displays animated Dog and Cat images from catoverlflow.com [http://catoverflow.com] and dogoverflow.com [http://dogoverflow.com]. I was able to release it and get it on the Windows Phone Store [http://www.windowsphone.com/en-us/store/app/puppy-kitty-overflow/95847bb0-a856-4d88-ad59-7…

James Montemagno James Montemagno

Google Plus Services, Login and +1 in Xamarin.Android

I have been dabbling around recently with integrating Google Play Services [https://developers.google.com/+/mobile/android/#recommend_content_with_the_1_button] into Android applications. Play Services are pretty interesting as they offer up a nice set of functionality including a G+ Sign In button and +1 sharing on G+. This is pretty intriguing to me because I have been building out a podcast streaming app for the Dot Net Rocks show. I wanted to build out a small sample to test what the detail…

James Montemagno James Montemagno

Modern Apps Roadshow Stop #1: Boston!

Today was a pretty awesome day here in Boston. In addition to being my 1 month anniversary working for Xamarin it was also the very first day of the .NET Rocks/Modern Apps Roadshow [http://xamarin.com/modern-apps-roadshow]. Over the last month I have been preparing and getting an amazing demo ready that I got to show off today, which showed off using Xamarin to create a cross platform app in C# for Windows Store, iOS, and Android using PCL and a Azure Mobile Service backend. I also got to finall…

James Montemagno James Montemagno

Simple re-usable Swipe To Delete Xamarin.iOS + MvvmCross

I was recently implementing some swipe to delete and edit mode in my Xamarin.iOS/MvvmCross applications. It is very common that you will have a custom TableViewDataSource that will implement and override some methods to handle this for you. It is very well documented on the Xamarin website [http://docs.xamarin.com/guides/ios/user_interface/tables/part_4_-_editing]. However I have always found myself writing the same code over and over again for custom data source. With MvvmCross we should all be…

James Montemagno James Montemagno

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

So last week I wrote [http://motzcod.es/post/61775933477/beautiful-android-compat-roboto-fonts-in] about and showed off some custom Robot Fonts using my RobotoTextView which you can find on GitHub [https://github.com/jamesmontemagno/XamDroid.RobotoText]. However the great Stuart Lodge [https://twitter.com/slodge] 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 d…

James Montemagno 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 [http://developer.android.com/design/style/typography.html] 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 platforms you have to do s…

James Montemagno 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 is designed to be swiped out from the left side of you application. The main…

James Montemagno 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 [http://mvvmcross.wordpress.com/]. 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 you need to just implement 1 method and you c…

James Montemagno James Montemagno