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. Reg:Camera porting

Hi Android ,
    Has anyone worked on the camera porting with android support.

Thansks and regards


2. Issue with Eclipse Android Plugin on Ubuntu Linux

I am running Ubuntu Linux (Jaunty) JDK 6.0 and am getting a strange
error for my first app.  i created the project and set the SDK home.
And also the JAVA_HOME is set.  But I can't run the app.

Your Project Contains error(s) please fix them before running your

The only thing I see on the console logs are the following:

[2009-05-02 06:57:28 - HelloWorld] ------------------------------
[2009-05-02 06:57:28 - HelloWorld] Android Launch!
[2009-05-02 06:57:28 - HelloWorld] adb is running normally.
[2009-05-02 06:57:28 - HelloWorld] Performing com.test.HelloWorld
activity launch
[2009-05-02 06:57:28 - HelloWorld] Failed to find an AVD compatible
with target 'Android 1.5'. Launch aborted.
[2009-05-02 06:58:42 - HelloWorld] no classfiles specified
[2009-05-02 06:58:42 - HelloWorld] Conversion to Dalvik format failed
with error 1


When I click Run as Android Application, I get the following error.


3. You tube video error

4. How to port AbsoluteLayout to FrameLayout?

5. Eclipse and Mac OS X 10.5

6. Accessibility of the visual UI

7. Maps Intent in CupCake