UI Development in Android

by swapnil » Thu, 06 Aug 2009 14:48:26 GMT


Sponsored Links
 Hello all,

I am working on UI Development in Android .

Can any one please tell me how I can put multiple layouts on the
screen at specific positions?

Is it ok that i can use the code instead of xml file for creating the
UI?

If any one has any links for UI development please give those too..


Thanks in advance,

Regards;

Swapnil Dalal.

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



UI Development in Android

by Michael Leung » Thu, 06 Aug 2009 14:51:15 GMT


 yes. I used the code to do that.






-- 
Regards,
Michael Leung
 http://www.itblogs.info 
 http://www.michaelleung.info 

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


Sponsored Links


UI Development in Android

by peter » Thu, 06 Aug 2009 16:58:02 GMT


 you should reference "User-Interface" document in android developer
website



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



UI Development in Android

by Yusuf T. Mobile » Fri, 07 Aug 2009 01:36:06 GMT


 Peter is referring to this link: 
 http://developer.android.com/guide/topics/ui/index.html 

Laying out your code programatically is useful especially if you are
dynamically laying it out depending on runtime input. Use the Android
Layout classes if possible, as they do a lot of the position
calculations for you.



Yusuf Saib
Android
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.






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



Other Threads

1. Views, ListViews and Adapters

Hi All,

Just looking at options for data updating affecting items in a
ListView and have hit
a few issues/queries.

There seems to only be notifyDataSetChanged() and
notifyDataSetInvalidated(). While I
could use notifyDataSetChanged() I am most likely in my case to have
the scenario where
additional data has been added and it seems inefficient to say the
data has changed,
which can only be resolved by calling getCount() and then getView()
for all displayed items
where knowing the data has been appended would just require adjusting
the scrollbar. Is
there some way to achieve something similar to this as the market
seems happy populating
dynamically in a manner that seems to reflect my desired behaviour
(unless it just refreshes
it all that fast).

Next question is the situation where the data behind just one item has
changed. For instance
I may wish to download icons in a background thread, but display
available information with a
placeholder icon. The best idea I've had so far is to store a map of
indexes and views in my
adapter which I can check against then call getView directly myself to
have the view recycled
with the new data. I'd just need additional logic to handle removing
the map when the view gets
destroyed or when it's recycled in getView. Either a bi-directional
map (do we have one of those?)
or two maps. Is the above likely to be my best approach or is there
something built-in/better to
get it done.

Cheers,

Alan.
--~--~---------~--~----~------------~-------~--~----~

2. New application - testing help wanted

Hi all,

I recently developed an application, published it and to my horror
about half of the people who downloaded it were having major issues
with it.

It is a very simple application designed to allow the toggling of
connectivity to 3G/EDGE/GPRS services. It exploits the fact that if
you set the APN type of an access point on the phone to a hyphen, the
phone does not try and connect to it.

When first run, the application copies all the access point names and
types into a database. It then sets the APN type of every access point
to a hyphen. It then displays 'Disabled'. When the application is next
run it restores the APN type of each access point. This works
perfectly on my development dream and the emulator.

I can not tell what part of this is failing for people so if anyone
would like to help me test this application it would be greatly
appreciated.

Thanks
--~--~---------~--~----~------------~-------~--~----~

3. How do I respond to a trackball press

4. Running new provider in Open source Framework.

5. As application developers are we allowed to access system properties like ro.config.sync?

6. How to make a video of the emulator ?

7. application stop unexpectedly