XML Schemas for Android namespaces?

by Erik Hellman » Tue, 06 Jan 2009 01:20:08 GMT

Sponsored Links

I search for the XML schema defined by the namespace "http://
schemas.android.com/apk/res/android". I know this has been asked
before, but that was over a year ago. Are this schema available
somewhere? It would be really great if these could be published as it
would make XML editing MUCH easier for those of us  who prefer
NetBeans or IntelliJ.

Any progress on publishing these? If not, is there any other
specification available so that we (the community) could create the
schemas outselves?


// Erik


XML Schemas for Android namespaces?

by Ward Willats » Tue, 06 Jan 2009 01:50:19 GMT

 Hear hear. Even for those of us writing stuff by hand it would be useful.

I've been trying to get my head around what a definitive schema would 
be though. It seems like the way things like attrs.xml work (to 
define elements for custom controls) some of the XML grammar is 
defined at resource compile time by other XML. (A static schema would 
give you the meta-framework for this, but not the specific grammar 
for a particular compilation run.)

I'd still like to see the static schema though!

-- Ward


Sponsored Links

XML Schemas for Android namespaces?

by Dianne Hackborn » Tue, 06 Jan 2009 10:54:47 GMT

 There isn't a schema for that.  The
 http://schemas.android.com/apk/resnamespace is a prefix for the 
symbols defined for any possible .apk, to
ensure they are not ambiguous with other XML namespaces.  You could possible
extend aapt to be able to generate some kind of schema when building a set
og resources, but the names here are really defined by the resource files.

Dianne Hackborn
Android framework engineer

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.


Other Threads

1. HELP! Magic ga mau booting

Dear RR,
As subject kenapa yah?
Kejadiannya tadi pagi update ROM SuperD 10.3 langsung hajar dari versi SuperD 
10. Tapi malah nyangkut dilogo htc Magic aja.
Udah coba wipe flashing, restore nandroid, flash cyanogen 4.15 tp tetap 
Mohon petunjuk RR..

Sent from BlackBerry on 3

"Indonesian Android Community [id-android]" 

2. Android 1.5 marketshare is increasing

The "Android Device Dashboard"

4 January 2010:

Android 1.1   0.3%
Android 1.5   31.0%
Android 1.6   47.6%
Android 2.0   0.7%
Android 2.0.1   20.4%

12 April 2010:

Android 1.1   0.1%
Android 1.5   38.0%
Android 1.6   31.6%
Android 2.0   0.3%
Android 2.0.1   2.7%
Android 2.1   27.3%

Thankfully, the pre-2.0 share is shrinking overall.

But the share for 1.5 *grew* from 31% to 38%. That can't be good.

P. V. Nasby


3. How many different market rankings are there?

4. Calon X10 users?

5. How to fix N D R IV E missing image file error was: Aplikasi GPS untuk Hero

6. Android animation not firing immediately

7. Spinner getting selected string