XML generate

by Apoorva » Sun, 29 Jun 2008 20:47:28 GMT


Sponsored Links
 Hi

I want to write to R.layout.main.xml from my code to create variable
no of views simultaneously present on the screen. But for some reason
all the usual methods of generating an xml using JAVA fail to work
here. Kindly help.


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



XML generate

by Mark Murphy » Sun, 29 Jun 2008 21:23:14 GMT


 


You need to construct your Views using normal Java constructors (or 
factory methods, where applicable), and wire them together using 
ordinary accessor methods. I'm fairly certain the XML layouts are a 
design-time facility only.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android Training on the Ranch in September!  http://www.bignerdranch.com 

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


Sponsored Links


Other Threads

1. Problem compiling Master and/or Cupcake, before and after the merge, targeting HTC Dream

Thank you for the update.  How would I go about getting / building
master without  OpenCORE ?









--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Android Features and Improvements that You Would Like To See

Hello all who are interested in the success of Android,
This thread is intended to create a comprehensive list of desired
features, improvements, and upgrades you would desire to see in a
future Android release.  You can give reasons as to why you think this
is necessary or want it, or just list the upgrades you wish for.  If
you have a cool idea for Android that you don't think is feasible with
today's technology, post it below too, all ideas are welcome!  Beyond
simply stating your ideas, please, read others and give insight into
how they could be implemented, whether they are already included in
Android, or your opinion on the idea.  For the generous Google
engineers who work on the Android OS and read these forums, please do
not interpret any of the ideas as complaints or whines (which would be
understandable because it is an open source project and people could
add these upgrades themselves), but rather as suggestions, feedback,
and constructive criticism.  We understand that most of what is said
is not in your jurisdiction, your responsibility, or in your power to
fix, and that you've heard many of these comments before.  In fact,
I'm sure many members of the community would like to hear your
opinions and thoughts on Android as it stands, so by all means, chip
in your two cents too!  Furthermore, even if you've already posted
your ideas throughout the forum, it's of the utmost importance to have
a unified and comprehensive list for constructive ideas on how to
improve Android, and will, I'm sure, turn into a vast and
irreplaceable resource for Android developers.  A completely fictional
example of someone's suggestions is below:


"* More stable keyboard - often times when I'm writing it reads that I
hit the wrong letter.
* Universal search - this would be really useful for Android so people
could access their data conveniently and quickly
* Multitouch - self-explanatory
* A more coherent theme throughout - to slick up the Android OS and
make it more competitive with the iPhone and crazed Apple fans
* Peer to peer Bluetooth connectivity
* VoIP (understand if they can't do this due to T-Mobile or other
carriers)
etc. etc."

This thread is a continuation of two previous threads (my first two
attempts to make a list like this, though I realized the name was
misguiding).

First:

3. Paid apps in market

4. Drug Guide

5. Fun Time...

6. Problem compiling Master and/or Cupcake, before and after the merge, targeting HTC Dream

7. apk ported on 2430 but application is not fitting in the screen.