> - What does xmlns mean?

That defines an XML namespace.

http://en.wikipedia.org/wiki/Xml_namespace

> - What is the android:xxx sytnax all about?

That is the use of an XML namespace. It keeps (most) of the Android
attributes out of the way of any other attributes one might layer in from
some other XML dialect for some other purpose.

> - What does the "http://schemas.android.com/apk/res/android"; do?

It is a unique identifier of the namespace.

> - Are there other values I might choose?  (ex. "http://
> schemas.android.com/apk/res/iPhone")

For layouts, not really.

> - Can you create your own Layouts like the "LinearLayout"?

Yes. Subclass ViewGroup, or one of the existing ViewGroup subclasses.
Since your own implementation should not be in the Java android.widget
package, you'll need to fully qualify your widget declaration in the XML:

<com.commonsware.android.MyLayout... />

> - Is there a list of available components like "Button", "TextView"?

If they have no Java package prefix, they are classes in the
android.widget Java package, and are documented in the SDK.

> - What does the @, the / and the + symbol do?

See http://developer.android.com/guide/topics/ui/declaring-layout.html

> - Can I edit this directly in Eclipse with a graphical editor rather
> than editing the xml text?

Uh, sorta. It's not a full drag-and-drop editor. I don't use Eclipse
personally, so I don't have much direct experience with it.

> That's a lot of questions.  So let me sum these up into one simple
> question:
>
> Does anyone know a link to the specification for the XML Layout
> Language for Android?

There is no "specification" per se. The specification is "read the
associated Javadocs", with other material at the URL I listed a couple of
bullets ago.

> Thanks for any hints for a complete newbie.

Welcome to Android!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~
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