[android-beginners] Re: XML Documentatin?
The documentation at http://developer.android.com/guide/topics/resources/available-resources.html 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 mic...@gmail.com 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't turn up 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 android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Documentatin?
Another page that contains some information is http://developer.android.com/reference/android/R.attr.html which 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 mic...@gmail.com 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 mic...@gmail.com 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'tturn up 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 android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Documentatin?
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 mic...@gmail.com 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 mic...@gmail.com 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 mic...@gmail.com 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 android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Documentatin?
I apologize to anyone who has this mailing list set to e-mail me every new post. My last statement turns out to be inaccurate regarding being able to look up a Java class and know what XML element to use for it. An example is ShapeDrawable which defines XML attributes to be used with it but does not indicate what XML tag to use. Hint: It's not shape, as that is used for GradientDrawable. On Jul 20, 2:10 pm, Micah mic...@gmail.com wrote: 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 mic...@gmail.com 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 mic...@gmail.com 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 mic...@gmail.com 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 android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---
[android-beginners] Re: XML Documentatin?
Try http://developer.android.com/reference/android/R.styleable.html -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 20, 1:56 pm, Micah mic...@gmail.com 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 mic...@gmail.com 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 mic...@gmail.com 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 android-beginners@googlegroups.com To unsubscribe from this group, send email to android-beginners-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~--~~~~--~~--~--~---