Is there any Android XML documentation?


Is there any sort of xml reference?

I found this which turned out to be invaluable for me

But I can't figure out how I was supposed to know how to do that, had I not found that post.

I know that the api reference has xml attributes listed for many of the classes... but what about xml tags? Where is it documented that I could build a shape using <padding>, <corners>, <solid> tags?

I'd really like to know where I can find such documentation.

By : Eddified


In the specific View documentation you can find the XML attributes.

Quoting Android reference:

"The best place to find properties that apply to a specific View is the corresponding class reference, which lists all of the supported XML attributes. For example, all of the attributes listed in the table of TextView XML attributes can be used in a style definition for a TextView element (or one of its subclasses).

Tip: Look at the Summary of the object's documentation (at the top) and click on XML Attrs to jump directly to the XML attributes.

And for a complete list of properties: R.attr

By : jpenna

I've wondered this several times too. Best I can figure there isn't any real documentation on this stuff.

I've mostly been just going through the source the SDK gives us so that I could figure out how they did it. The files in $SDK_PATH/platforms/android-1.5/data/res/ should show you how pretty much everything was done for the base system. It isn't easy and it isn't documentation, but it IS examples.

This video can help you solving your question :)
By: admin