Friday, April 26, 2013

Auto resource namespace resolution for Android XML

Oh yes! Oh yes! Oh yes!


The mighty @CheeseBaron has just pointed out to me that you can use this syntax in your Android XML in order to automatically include the local namespace:
 
  xmlns:local="http://schemas.android.com/apk/res-auto"
 
Tried it in Xamarin.Android and it seems to work :)

So, you no longer need to use the old syntax like:

  xmlns:local="http://schemas.android.com/apk/com.my.package.name"

This little hint is going to remove yet another one of those little editing annoyances - thanks, CB :)

No comments:

Post a Comment