On Mar 11, 5:42 pm, Lance Nanek <[email protected]> wrote:
> And using the default namespace doesn't work (it shouldn't anyway, the
> default namespace doesn't apply to attributes)

Huh, didn't know that. That's pretty silly if you ask me. I guess the
best solution is to use 'a:' then...

Actually a namespace can be called '_'. That might improve readability
a bit, so you have:

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

        <TextView
                _:layout_width="fill_parent"
                _:layout_height="wrap_content"
                _:text="@string/hello" />

</LinearLayout>

-- 
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