If you load a layout resource via setContentView() or a LayoutInflator, Android will choose the right resource automatically based on orientation.
If you are generating your UI directly in Java code, either switch to using layout resources, or use the orientation field on the Configuration object to find out what the current orientation is. On Wed, Feb 2, 2011 at 6:45 PM, kiros88 <[email protected]> wrote: > Hi so im going to make a layout for both horizontal and vertical > layout but im trying to figure out right now is how u make the system > know when i guess u create it? is there a way to check programmically? > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

