android Programming Glossary: orientations
Heterogeneous GridLayout http://stackoverflow.com/questions/10812552/heterogeneous-gridlayout the desired layout parameters on all screen sizes and orientations. xml version 1.0 encoding utf 8 LinearLayout xmlns android http..
How to handle screen orientation change when progress dialog and background thread active? http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-thre dialog share improve this question When you switch orientations Android will create a new View. You're probably getting crashes..
reading android jpeg EXIF metadata from picture callback http://stackoverflow.com/questions/12944123/reading-android-jpeg-exif-metadata-from-picture-callback persistent disk at any time. The camera must support all orientations. My implementation is that of the familiar Surfaceview examples...
Canvas containing bitmap size proper adjustment in landscape and portrait mode http://stackoverflow.com/questions/17103026/canvas-containing-bitmap-size-proper-adjustment-in-landscape-and-portrait-mode that there is no auto adjustment of views according to orientations although I have proper folders res layout large activity_main.xml..
How do I specify different layouts for portrait and landscape orientations? http://stackoverflow.com/questions/2124046/how-do-i-specify-different-layouts-for-portrait-and-landscape-orientations do I specify different layouts for portrait and landscape orientations I've seen references to being able to specify two separate..
is it possible to evenly distribute buttons across the width of an android linearlayout http://stackoverflow.com/questions/3470420/is-it-possible-to-evenly-distribute-buttons-across-the-width-of-an-android-linea for a fixed width and won't work for changing devices or orientations. LinearLayout android id @ id LinearLayout01 android layout_height..
Android: Disable rotations by 90°, but enable rotations by 180° http://stackoverflow.com/questions/4371631/android-disable-rotations-by-90-but-enable-rotations-by-180 Is it possible to enable an app to support both landscape orientations android orientation screen orientation share improve this..
Spinner drop-down list and screen orientation change problem http://stackoverflow.com/questions/5233741/spinner-drop-down-list-and-screen-orientation-change-problem have a problem with a spinner drop down list and changing orientations. In my activity I display a dialog in which I have two spinners...
Difference between /res and /assets directories http://stackoverflow.com/questions/5583608/difference-between-res-and-assets-directories alternatives for different languages OS versions screen orientations etc. as described here . None of that is available with assets...
Android - disable landscape mode? http://stackoverflow.com/questions/582185/android-disable-landscape-mode to an outright negative experience for supporting other orientations you should probably not force landscape. I'm talking about things..
Don't reload application when orientation changes http://stackoverflow.com/questions/5913130/dont-reload-application-when-orientation-changes I'd go with 3 . Of course if locking the app to one of the orientations is fine with you you can also go with 2 . share improve this..
Store orientation to an array - and compare http://stackoverflow.com/questions/6368618/store-orientation-to-an-array-and-compare It is far easier to compare the acceleration vectors than orientations Euler angles rotation matrices quaternions as tc pointed that..
Multiple screen resolutions/aspect ratios (games) http://stackoverflow.com/questions/7061258/multiple-screen-resolutions-aspect-ratios-games
Portrait for phone, landscape for Tablet (Android-Layout) http://stackoverflow.com/questions/7668367/portrait-for-phone-landscape-for-tablet-android-layout seen which defeats the purpose of wanting two separate orientations for devices. Tablets Landscape Phones Portrait To put it more..
Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or devices this doesn't work. In fact it returns 1 for all orientations. Here's the list of devices we observed this on Samsung Infuse.. filePath You can easily find out how to find exif orientations like the answer in this question Camera orientation problem..
What is the benefit of using Fragments in Android, rather than Views? http://stackoverflow.com/questions/8617696/what-is-the-benefit-of-using-fragments-in-android-rather-than-views in two scenarios if you split up views on some devices orientations and show them in two activities and show all the content in..
Heterogeneous GridLayout http://stackoverflow.com/questions/10812552/heterogeneous-gridlayout will be provided when I return home. Now Tested This provides the desired layout parameters on all screen sizes and orientations. xml version 1.0 encoding utf 8 LinearLayout xmlns android http schemas.android.com apk res android android layout_width..
How to handle screen orientation change when progress dialog and background thread active? http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-thre it starts working again. android android activity android dialog share improve this question When you switch orientations Android will create a new View. You're probably getting crashes because your background thread is trying to change the state..
reading android jpeg EXIF metadata from picture callback http://stackoverflow.com/questions/12944123/reading-android-jpeg-exif-metadata-from-picture-callback for a messenger program. I cannot save the captured image to persistent disk at any time. The camera must support all orientations. My implementation is that of the familiar Surfaceview examples. I use the Display class to detect orientation and rotate..
Canvas containing bitmap size proper adjustment in landscape and portrait mode http://stackoverflow.com/questions/17103026/canvas-containing-bitmap-size-proper-adjustment-in-landscape-and-portrait-mode do the same for portrait mode Any alternatives or ideas I found that there is no auto adjustment of views according to orientations although I have proper folders res layout large activity_main.xml and res layout large land activity_main.xml . where res..
How do I specify different layouts for portrait and landscape orientations? http://stackoverflow.com/questions/2124046/how-do-i-specify-different-layouts-for-portrait-and-landscape-orientations do I specify different layouts for portrait and landscape orientations I've seen references to being able to specify two separate layout xml files for an activity one for Portrait and one for..
is it possible to evenly distribute buttons across the width of an android linearlayout http://stackoverflow.com/questions/3470420/is-it-possible-to-evenly-distribute-buttons-across-the-width-of-an-android-linea and then adjusting the padding of the buttons but this works for a fixed width and won't work for changing devices or orientations. LinearLayout android id @ id LinearLayout01 android layout_height wrap_content android orientation horizontal android layout_width..
Android: Disable rotations by 90°, but enable rotations by 180° http://stackoverflow.com/questions/4371631/android-disable-rotations-by-90-but-enable-rotations-by-180 0 and 3 representing the current orientation. Summarized Is it possible to enable an app to support both landscape orientations android orientation screen orientation share improve this question The new sensorLandscape screen orientation is apparently..
Spinner drop-down list and screen orientation change problem http://stackoverflow.com/questions/5233741/spinner-drop-down-list-and-screen-orientation-change-problem drop down list and screen orientation change problem I have a problem with a spinner drop down list and changing orientations. In my activity I display a dialog in which I have two spinners. When the dialog is shown to the user and the user changes..
Difference between /res and /assets directories http://stackoverflow.com/questions/5583608/difference-between-res-and-assets-directories With resources there's built in support for providing alternatives for different languages OS versions screen orientations etc. as described here . None of that is available with assets. Also many parts of the API support the use of resource identifiers...
Android - disable landscape mode? http://stackoverflow.com/questions/582185/android-disable-landscape-mode doesn't have an extremely specific use case that would lead to an outright negative experience for supporting other orientations you should probably not force landscape. I'm talking about things like this is a remote control app for a phone with an..
Don't reload application when orientation changes http://stackoverflow.com/questions/5913130/dont-reload-application-when-orientation-changes
Store orientation to an array - and compare http://stackoverflow.com/questions/6368618/store-orientation-to-an-array-and-compare does the orientation relative to North matter I guess not. It is far easier to compare the acceleration vectors than orientations Euler angles rotation matrices quaternions as tc pointed that out. If you are using acceleration data you have 3 dimensional..
Multiple screen resolutions/aspect ratios (games) http://stackoverflow.com/questions/7061258/multiple-screen-resolutions-aspect-ratios-games
Portrait for phone, landscape for Tablet (Android-Layout) http://stackoverflow.com/questions/7668367/portrait-for-phone-landscape-for-tablet-android-layout as though I can only do an orientation lock from what I've seen which defeats the purpose of wanting two separate orientations for devices. Tablets Landscape Phones Portrait To put it more technical. I have a layout in res layout xlarge land for landscaping..
Images taken with ACTION_IMAGE_CAPTURE always returns 1 for ExifInterface.TAG_ORIENTATION on some newer devices http://stackoverflow.com/questions/8450539/images-taken-with-action-image-capture-always-returns-1-for-exifinterface-tag-or the picture accordingly. But now we found that on some newer devices this doesn't work. In fact it returns 1 for all orientations. Here's the list of devices we observed this on Samsung Infuse 4G 2.3.3 Samsung Galaxy SII X 2.3.5 Sony Xperia Arc 2.3.3.. else if rotation 1 rotation getExifOrientationAttribute filePath You can easily find out how to find exif orientations like the answer in this question Camera orientation problem in android Also note that ExifInterface is only supported after..
What is the benefit of using Fragments in Android, rather than Views? http://stackoverflow.com/questions/8617696/what-is-the-benefit-of-using-fragments-in-android-rather-than-views share improve this question I'd say Fragments are useful in two scenarios if you split up views on some devices orientations and show them in two activities and show all the content in one on other devices. That would be a use case if you go on..
|