More Googling has turned up this post:
http://groups.google.com/group/android-beginners/msg/3a9744adda7d98d9
(I'm not sure if Google group thread links are reliable long term, if
not search for a post titled "XML Layout Language" in the android-
beginners group).  It would appear that somewhere mystical there is a
association of Java classes to XML elements.  Some make sense, like
LinearLayout Java class is associated with the <LinearLayout>
element.  Others don't make as much sense like GradientDrawable Java
class is associated with <shape>.  Also some contain useful
documentation such as LinearLayout while others like <shape> contain
very sparse information (ex: the shape attribute is listed but no
information is given on what it's for).

So I guess the new quest is, does anyone know where the list of
associations can be found at?  If I know I want a GradientDrawable I
can look at the Java class documentation for it and see that I need a
<shape> in XML but finding it the other way around doesn't work as
well (mainly because the search feature on that page strips out the
'<' and '>' in a search string so I can't search for <shape>, I can
instead only search for shape, which returns many unrelated results.

On Jul 20, 1:56 pm, Micah <[email protected]> wrote:
> Another page that contains some information 
> ishttp://developer.android.com/reference/android/R.attr.htmlwhich
> appears to list all XML attributes for all elements.  Unfortunately,
> this list doesn't include any information about which elements the
> attribute goes with.  Thickness attribute, for example, is meant to be
> used with <shape anroid:shape="ring" android:thickness="3.5sp"> and it
> doesn't make much sense in a LinearLayout element <LinearLayout
> android:thickness="3.5sp">.
>
> Note: To avoid confusion I am still searching for an answer if anyone
> has one.  I'm just trying to keep this thread updated on what I learn
> in case someone else ends up googling for XML Documentation like I
> did.
>
> On Jul 20, 1:49 pm, Micah <[email protected]> wrote:
>
>
>
> > The documentation 
> > athttp://developer.android.com/guide/topics/resources/available-resourc...
> > appears to be what I'm looking for except it's incomplete.  It doesn't
> > contain information about the <shape> tag, and I'm not sure what else
> > is missing. :(
>
> > On Jul 20, 1:36 pm, Micah <[email protected]> wrote:
>
> > > When working with android XML files there are a bunch of tags
> > > available such as TextView, shape, alpha, set, menu, LinearLayout,
> > > etc.  Where can I find a list of all of the tags available along with
> > > (ideally) documentation on what they are used for and what attributes
> > > are available for them?  Searching the reference documentation 
> > > athttp://developer.android.com/reference/packages.htmldoesn'tturnup
> > > any useful results, it only seems to return results for the various
> > > Java classes.
>
> > > An example of what I'm looking for is the shape tag.  Based on
> > > examples, It can have solid, stroke and padding tags within it as well
> > > as an android:sahpe attribute which can be "line" and maybe other
> > > things (I don't know what else).  So where can I find documentation on
> > > what tags are valid within a <shape></shape> block and what attributes
> > > are valid on a shape?  If I look at the the ShapeDrawable Java class
> > > (http://developer.android.com/reference/android/graphics/drawable/
> > > ShapeDrawable.html) I can see some attributes, but android:shape
> > > attribute isn't listed yet it's used in one of the examples.  I am not
> > > even sure if ShapeDrawable is the same as <shape> or not. :/
>
> > > At this point I would be even interested in the definitions in code
> > > form (perhaps and XML Schema file or something so I at least know what
> > > I can type and then I can play around with it to figure out exactly
> > > what it does.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to