Android Xml / Widget reference?

by Chris Smith (Quirk Software) » Mon, 02 Mar 2009 11:24:54 GMT


Sponsored Links
 Hey.

To be plain, the android / xml widget reference material is poor at
best.  Rather than approaching the controls from an xml point of view,
its all driven from a class point of view, which is clunky when you
want to figure out how to build a good xml UI.

Is there any decent documentation with design in mind (tag names,
attribute names, etc) or is it just figure it out and struggle through
the best you can?

I'm on my 2nd android app and losing patience with hunting and pecking
for the correct attributes / tags.

Any help would mean great appreciation from me and major karma in the
next life.

--~--~---------~--~----~------------~-------~--~----~



Android Xml / Widget reference?

by Romain Guy » Mon, 02 Mar 2009 11:56:10 GMT


 XML tags map to classes. Just look at the documentation of the control
you want and it should show the list of valid XML attributes at the
top with their Java API equivalent (for instance:
 http://developer.android.com/reference/android/widget/FrameLayout.html )

On Sun, Mar 1, 2009 at 12:01 AM, Chris Smith (Quirk Software)





-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Android market suddenly in english

Was in french since I bought my HTC Magic in France, about two weeks
ago, my android market turned english... what gives?

--

2. Bluetooth Controls on A2DP Devices Control Problems

I have a car stereo and a pair of wireless headphones that use the
A2DP inteface to play hifi music via bluetooth.  The play/stop (and
other car/headset controls) always control a single application
("Music" application on Motorola Doid with Android 2.0.1).  I have
other applications that are audio/video based on the phone and when
using these apps they also will control via the remote inteface.  The
problem occurs when stopping/starting the music/video on this
application in the forground.  If I start the music from the remote
device, the forground application starts playing AND the "Music"
application (apparently open in background) also starts playing.  Have
I configured something incorrectly on my phone?  I want only the
application in the forground to get the remote control from the
bluetooth headphones/car interface.  If no application is running in
the forground then assuming that I want "Music" as a default
application to initiate when my headphones/car send a "play" command
would be OK.

--

3. Cashew - personal finance manager for Android

4. JavaScript Execution when the browser is running in background.

5. Music player skips during notifications.

6. http://d.android.com/resources/dashboard/platform-versions.html

7. Debugger does not attach