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. example on asynctask class..

Hi friends,

             can any one send me the example on asynctask class. I tried
it's not working fine.

               Any help please.



Regards,
Abhilash.B

-- 

2. How to pass date object from one activity to other?

we can pass String as
Intent returnIntent = new Intent();
returnIntent.putExtra("SelectedRadio", selectedRadio);

But if I want to pass Date object then how to pas it from one activity
to another?

Thanks in advance.

-- 

3. MMS Messages

4. Send email via ACTION SEND intent

5. How to handel Listview click events

6. Detect Intent Broadcast Receivers

7. Join as associate of Karvy