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.

Justin




>



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. Honeycomb / ApiDemos / Fragments: ActionBarTabs activity not working

The ActionBarTabs in the Honeycomb ApiDemos does not seem to work.
First, the theme of the activity is not set to the Holo theme, so it
crashes because there is no action bar (getActionBar() returns null).
I fixed this in the Manifest, but then the activity crashes when
changing the orientation, because the fragments used are not public
and have no empty constructor...

-- 

2. Android 2.3.3 and NFC Modes

Hi all,

just exploring NFC, got a few tags from smartcardfocus.com and now try
to discover as much as I can.

What "modes" are currently supported?

There are three modes the nfc forum defined:

- card emulation
- peer to peer
- card/tag reading/writing

The latter one is clearly supported, then peer to peer I believe has
limited support but what about card emulation? This is meant to
replace credit cards etc with your mobile device. What is needed to
support this mode and has anyone any details on how I would use it to
"fake" my real credit card for payment in case I would actually
discover some NFC payment terminal?

Cheers
Sven

-- 

3. Android WhiteBox Testing

4. Downloading Videos using Service but facing problem with respect to Wifi Connection

5. Is SL4A a better tool to test android Applications

6. XOOM #Androiddev questions at the MOTODEV Office Hours March 16th 2pm Pacific

7. Android news today