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. USB OTG driver

hi all,

does newest kernel version support for usb OTG driver?
I found that it works before, but now fail,
how can I build for OTG driver?

thanks

-- 

2. AudioManager, requestAudioFocus and video playback...

Hi,

On Android 2.2.1, I am seeing a behavior I don't understand.  I am
making a call to requestAudioFocus()

mAudioManager.requestAudioFocus(mAudioFocusChangeListener,
AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN);

So that when another media player takes over the audio, I can pause my
own audio playback.  If i use the music player, this works great.
However, when I try to play a video, I don't get the call in my focus
change listener.  Any ideas on why?

tia.

-- 

3. Strange Gallery click behavior

4. User Comments on apps - Google AWOL

5. Marking points in a MapView

6. Android encryption Google App Engine decryption

7. Help, HH ga bisa di root