Xamarin Blog

An open source mobile platform for building Android, iOS, macOS, watchOS, and tvOS apps with .NET.

Android Tricks: Vignette Image Effect
Android Tricks: Vignette Image Effect
The code in this blog post is based on code from Romain Guy's blog. Today, we are going to discuss a really nice effect that you can apply to your ImageView to automatically add rounded corners and extra shadowing to the displayed Bitmap: These effects are based on a couple of Shader classes like BitmapShader, RadialGradient and ...
Android Tricks: Flash Bars
Android Tricks: Flash Bars
The artwork and underlying idea in this blog post is based on Romain Nurik's work. He is a great source to follow for insight into Android application design. The new GMail app that comes with Android 4.0 is full of interesting UI tricks. If you have ever been on dodgy data connection, you probably have already encountered this one that ...
Android Tricks: Supporting Drag and Drop in an App
Android Tricks: Supporting Drag and Drop in an App
Since Honeycomb, Android has offered a very straightforward, easy-to-use API for implementing drag and drop in your application. Any View can be dragged and any other View can become a drop zone. You can attach information to a drag operation to be used by the receiver, allowing the application to do more processing when a drop is ...
Interview: How Stephane Delcroix Built a Game with His Six-Year Old Son
Interview: How Stephane Delcroix Built a Game with His Six-Year Old Son
Stephane Delcroix is a software programmer based in Belgium.  He does iOS, C# and .NET contracting.  He is a Mono contributor and previously worked at Novell where he implemented Moonlight’s DeepZoom stack among other things.   You can follow Stephane on twitter, his handle is @s_delcroix Stephane recently posted two tweets that ...
MonoTouch Update for iOS 6.1
MonoTouch Update for iOS 6.1
We have just released MonoTouch 6.0.10 which contains support for the new APIs introduced in iOS 6.1, which Apple released just a few hours ago. From an API perspective, iOS 6.1 was a relatively minor upgrade.  There are only a couple of new classes added to MapKit, the MKLocalSearchRequest and MKLocalSearchRequest classes.   We have...
HOWTO: Partially Linking iOS Apps with Xamarin
HOWTO: Partially Linking iOS Apps with Xamarin
The latest release of MonoTouch (6.0.9) introduces two new attributes that allow you to customize how the linker will process your application's assemblies. That makes it easier to go beyond the default behavior of "Link SDK assemblies only" without investing as much time as you would need to validate  that "Link all assemblies" works ...
Android Tricks: Eye Candy Using Layout Animations
Android Tricks: Eye Candy Using Layout Animations
Since Android 3.0 (API level 11), a lot of effort has gone into improving the visual appeal of the operating system. In addition to adding eye candy to the builtin software, Google also introduced new features in the Android development frameworks that make it easier for third-party developers to improve the look and feel of their own ...
Localizing iOS 6 Storyboards with MonoTouch
Localizing iOS 6 Storyboards with MonoTouch
Localization and internationalization of XIB and Storyboard files has historically been a very manual process. Typically, these file types would be duplicated in each 'language directory' (*.lproj) and then the text and layout would be tweaked independently by each translator. Changes to the actual Storyboard or XIBs would need to be ...
Eight Reasons C# is the Best Language for Mobile Development
Eight Reasons C# is the Best Language for Mobile Development
The statisticians behind the Popularity of Programming Languages (PYPL) index have named C# the language of the year for 2012. Their data shows that C# popularity grew by 2.3 percent in 2012, more than any other programming language during the same period. What accounts for the growth of C# in 2012? Well, the launch of Windows 8 has ...
Android Tricks: Using Shape for Theming
Android Tricks: Using Shape for Theming
Android supports all sorts of "drawable" objects (the Bitmap drawable, which can contain images in formats like PNG and JPG, is one example). The one we are going to talk about today is so-called Shape drawable. Shape drawables are defined with a simple XML syntax and stored in the drawable folder of an Android solution. Several basic ...