On Mar 10, 5:47 am, sstrenn <[email protected]> wrote:
> It seems difficult to believe that this isn't handled in a default/
> override manner.  The default requires no namespace, which
> automatically maps to android:.

Erm, I think you can do that if you want.

Instead of:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:orientation="vertical" >
etc.
</LinearLayout>

You could use

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android";
              a:layout_width="fill_parent"
              a:layout_height="fill_parent"
              a:orientation="vertical" >
etc.
</LinearLayout>

or even

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns="http://schemas.android.com/apk/res/android";
              layout_width="fill_parent"
              layout_height="fill_parent"
              orientation="vertical" >
etc.
</LinearLayout>

I haven't actually tried this but I'm pretty sure it should work. See
http://www.w3.org/TR/2006/REC-xml-names11-20060816/#scoping-defaulting

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to