Top "Device-orientation" questions

Use device-orientation for questions related to coding for both landscape and portrait modes of a device which can be rotated by the user

Three.js: rotate camera with both touch and device orientation

I am making a 3D project with threejs which allows control of the camera with mouse for computer devices, and …

javascript html three.js device-orientation
Android: understanding the function remapCoordinateSystem

I have been trying to understand these 2 lines of code SensorManager.getRotationMatrix(RTmp, I, grav, mag); SensorManager.remapCoordinateSystem(RTmp, SensorManager.…

android screen-orientation device-orientation rotational-matrices
How to support only portrait mode on an iPhone app

I have a strange problem in an iPhone app I'm developing. I want my app to support ONLY portrait mode, …

iphone objective-c xcode autorotate device-orientation
Hiding title bar / notification bar when device is oriented to landscape

I want my title bar to be hidden when I turn my device to landscape. I have seen the XML …

java android titlebar device-orientation
lock orientation programmatically in iOS 9

As title, I'm wondering if it's possible to lock orientation programmatically in iOS 9 now? This is critical to my app …

ios9 device-orientation
How to get the iPhone view's current orientation or the device's last orientation?

In my app an image appears when user shakes the device. There are different images for landscape and portrait mode. …

iphone device-orientation
UITableViewCell autoresizingmask issue

I have 3 UI elements in the contentView of the UITableViewCell that need to be aligned properly when the device rotates. …

iphone ios uitableview device-orientation autoresizingmask
Activity Restarts when Orientation changes android?

I have a application ,where I am using Landscape and potrait mode. I have used android:configChanges="orientation|keyboardHidden" in …

android orientation screen-orientation android-orientation device-orientation
Autolayout and Device Orientation

I am developing an application which supports portrait and landscape modes. I am using auto layout to arrange my views. …

ios iphone autolayout device-orientation autorotate
Android Device Orientation is Landscape but Sensors Behaves Like the Orientation is Portrait

I have a problem with orientation in android. The device orientation is landscape which i have set in AndroidManifest.xml …

android orientation android-sensors device-orientation