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. [WTA] saran pengen beli hape android

salam kenal bro2 senior...

saia pengen beli hape android, saia bingung ada beberapa pilihan

- pertama saya naksir LG Optimus 2X soal nya spek nya sangar,,, :D
- kedua temen saya saranin Galaxy Tab karena layar besar dan bisa telp
- ketiga HTC Desire HD sama kayak Optimus 2X spek nya sangar..

kalo boleh minta saran lebih baik pilih yang mana ya? beserta alasan
nya yah...

thx

-- 
===============
"

2. glHint implementation and openGL antialiasing

hi every one !

can we use

gl.glHint(GL11.GL_LINE_SMOOTH_HINT, GL11.GL_NICEST);

to get antialiased lines in android's openGL ES ?

I tried it but it doesn't seem to work.

the doc (http://www.khronos.org/opengles/sdk/1.1/docs/man/ )
says :
"The interpretation of hints depends on the implementation. Some
implementations ignore glHint settings."


so I guess it's the case in our openGL implementation, and in that
case, I wonder if glHint could be use in the futur ?

and still about antialiasing, does someone know a way to get smooth
antialiased lines rendered ?

-- 

3. change color of Button

4. Setting up development environment on windows 7

5. XL unlimited

6. Android 2.3 NFC Capabilities

7. app to webservice connection architecture?