Specifying LinearLayout orientation in resource "values"

by Justin Giles » Tue, 20 Apr 2010 20:41:12 GMT

Sponsored Links
 I suppose you could change the orientation in code.  After you assign the
view in your onCreate, do a check to see whether the user is on landscape or
portrait mode and set the orientation value accordingly.  This should be a
bit more fool-proof than your method, however it could have its own
drawbacks in that it could cause shifting on the screen visible to the user.
 Might be worth a try though.



Specifying LinearLayout orientation in resource "values"

by westmeadboy » Wed, 21 Apr 2010 05:18:35 GMT

 I'm a little nervous about setting it in code (also in
onConfigurationChanged() ) for the reasons you mentioned. It just
feels "tighter" to do it in the XML...

> >

Sponsored Links

Other Threads

1. SIGH ... Android & SOAP

This post is directed to those of you who may have been, are or will be
FORCED to deal with stone-age SOAP w/s and Android.

What has been the best way to consume these 7-layered nightmares?
Is there any native (non 3rd-party) support in Android?
Library recommendations (which to embrace, which to drop-it-like-its-hot,



2. Contact Organization in Emulator different than Phone


I am developing using Eclipse and the targeted SDK version is API 7
(Version 2.1).  My phone has Android version 2.1-update1.

When running on the emulator, the contacts have an Organization
section and within that section is Work Company, Title...  When
running on the phone, all contacts (Google and Phone) don't have the
Organization section.  So the app runs on the emulator but not the
real phone.

I am using the API 5 class
ContactsContract.CommonDataKinds.Organization to update Contact
Organization.  Why is the emulator different that the phone?



3. PSC (primary scrambling code) of connected cell?

4. Web service access

5. Multiplatform native mobile access for enterprise - anyone interested ?

6. Monkey Testing and automatically generating the events...

7. Cannot stop soundpool loop even after exiting app