Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Android XML documentation? [closed]

Is there any sort of xml reference?

I found this which turned out to be invaluable for me

  • (Multiple) Shape drawing with XML

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.

like image 824
Eddified Avatar asked Sep 01 '09 01:09

Eddified


People also ask

Is XML still used in Android?

XML is now commonly found as part of UI development processes in spaces such as Android, JavaFX, UPF and Xmarin. It is also extensively used in Magneto, in addition to Microsoft based programs such as Word, Excel, and Powerpoint.

Is XML deprecated Android?

Short answer: Not possible. @deprecated tags are used by the Android source inside comments as it can be seen in fw/base core/res/values/attrs. xml (see line 3427 for autoText as referred to in the original post), in fw/base core/res/values/public.

Why XML is used in Android not HTML?

HTML is a standard designed to display web pages. The android XML layout files are custom configuration files that are intended to be parsed by the dalvik VM.

Does Android Studio uses XML?

Android provides a straightforward XML vocabulary that corresponds to the View classes and subclasses, such as those for widgets and layouts. You can also use Android Studio's Layout Editor to build your XML layout using a drag-and-drop interface. Instantiate layout elements at runtime.


1 Answers

The classes which have XML attributes, list them XML attributes in their own documentation. Attributes beginning with layout are documented in the containing layout class.

The manifest file is documented here. Google recently added a lot of new documentation, including documentation on XML resources. See this webpage on drawable resources.

There resources aren't comprehensive, so R.styleable is still often the best bet. R.attr is better if you just want to see all attributes, rather than the attributes available for a particular tag.

like image 63
Casebash Avatar answered Sep 21 '22 04:09

Casebash