The Artima Developer Community
Sponsored Link

Java Buzz Forum
Android XML Weirdness

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Elliotte Rusty Harold

Posts: 1573
Nickname: elharo
Registered: Apr, 2003

Elliotte Rusty Harold is an author, developer, and general kibitzer.
Android XML Weirdness Posted: Sep 16, 2008 9:58 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Elliotte Rusty Harold.
Original Post: Android XML Weirdness
Feed Title: Mokka mit Schlag
Feed URL: http://www.elharo.com/blog/feed/atom/?
Feed Description: Ranting and Raving
Latest Java Buzz Posts
Latest Java Buzz Posts by Elliotte Rusty Harold
Latest Posts From Mokka mit Schlag

Advertisement

Here’s something weird I noticed while fooling around with the Android SDK:

<?xml version="1.0" encoding="UTF-8"?>
<TextView xmlns:a="http://schemas.android.com/apk/res/android"
    a:layout_width="fill_parent"
    a:layout_height="wrap_content"
    a:text="Hello World"
    />

If the weirdness doesn’t strike you, look twice.

The attributes are in the Android namespace but the elements are in no namespace at all. This is exactly the reverse of the usual pattern. Can anyone explain this? I’m not sure it’s wrong, but it’s certainly strange, and violates the principle of least surprise.

Read: Android XML Weirdness

Topic: How to Create Translucent and Shaped Windows Previous Topic   Next Topic Topic: Learning Curve Journal, Part 4: Accessing a Web Service

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use