device-orientation Questions
4
I need a specific MAUI page to be in Landscape only orientation.
I found this tutorial about forcing device orientation and I am using the multi-targeting feature of MAUI to implement the device sp...
Tinatinamou asked 17/12, 2022 at 22:52
16
Solved
On one of my flutter pages, I need the screen to set to landscape mode and lock it so it can't rotate into portrait mode, but only on the one page. So need a way to enable this function on-the-fly....
Hornsby asked 14/5, 2018 at 1:20
18
Solved
Since my app got support for all orientation. I would like to lock only portrait mode to specific UIViewController.
e.g. assume it was Tabbed Application and when SignIn View appear modally, I onl...
Pomfret asked 9/3, 2015 at 9:29
6
Solved
I'm trying to implement DeviceOrientationEvent and DeviceMotionEvent on my website for a 3D effect. However, the console doesn't log any info and apparently iOS 13 requires a user set permission to...
Eductive asked 9/6, 2019 at 11:13
10
Solved
I have developed an iOS App and tested it on iOS6 device. While testing, I realized that my App is not responding to Orientation changes as expected.
Here is my Code:
// Autorotation (iOS >= 6...
Joettajoette asked 12/12, 2012 at 9:26
2
Solved
To observe the problem in action with an Android device you may visit HERE and scroll down to "Show orientation angles". Once you turn it on and start getting live numbers, try holding yo...
Frill asked 17/9, 2021 at 0:17
32
Solved
I am building a website specifically for mobile devices. There is one page in particular which is best viewed in landscape mode.
Is there a way to detect if the user visiting that page is viewing...
Deon asked 7/2, 2011 at 2:29
4
In iOS 13 Apple has introduced the API DeviceOrientationEvent.requestPermission. It must be triggered on user action (click, tap or equivalent).
My problem here is that the result seems to be cache...
Mightily asked 24/9, 2019 at 16:35
9
I have a problem reloading an activity with tabs and fragments when I change the orientation of my device.
Here's the situation:
I have an activity which has 3 tabs in the action bar. Each tab lo...
Laxative asked 25/6, 2012 at 16:3
5
I want my title bar to be hidden when I turn my device to landscape. I have seen the XML option to hide the title bar, and the following example of doing it programmatically:
//Remove title bar
th...
Antilebanon asked 8/8, 2012 at 2:33
2
I have a webpage optimized for viewing in a mobile.
I am utilizing the viewport meta tag <meta name = "viewport" content = "width = device-width"> which detects the device width and sets the...
Lengthwise asked 14/6, 2012 at 14:21
1
Solved
I'm trying to create a reliable compass in Javascript/JQuery (using deviceorientation) so that it works on iOS and Android mobile devices.
I know nearly every (very old) question/answer here in Sta...
Cowl asked 30/7, 2018 at 11:33
5
Solved
When I change viewcontroller orientation while it's loading on particular orientation, part of the screen goes blank at the bottom.
Steps to reproduce:
Have tableview(Not necessary I think. coul...
Additive asked 7/11, 2019 at 9:29
7
Solved
if UIDeviceOrientationIsLandscape(UIDevice.currentDevice().orientation) {
print("landscape")
}
if UIDeviceOrientationIsPortrait(UIDevice.currentDevice().orientation){
print("portrait")
}
Ho...
Lillia asked 28/7, 2016 at 7:30
2
I am trying to fire deviceorientation event of javascript but event is not firing in my android device. please check out event documentation here
window.addEventListener('deviceorientation', fu...
Douty asked 14/9, 2019 at 10:1
4
Solved
I'm trying to force the "landscape" mode for my application because my application is absolutely not designed for the "portrait" mode.
How can I do that?
Scenic asked 16/1, 2013 at 14:25
2
Solved
Is there any body of evidence that we could reference to help determine whether a person is using a device (smartphone/tablet) with their left hand or right hand?
My hunch is that you may be able...
Veda asked 31/12, 2014 at 11:4
3
Solved
I have Xamarin.Forms application that authenticates user against Azure AAD using ADAL (Microsoft.IdentityModel.Clients.ActiveDirectory). That all works fine but on Android, device orientation loose...
Goebel asked 28/6, 2019 at 21:32
6
I'm using React Native 0.29 and developing for Android. I'm trying to lock the device orientation. What I need is to lock the screen in portrait mode. I tried with this repository https://github.co...
Caban asked 27/7, 2016 at 20:7
7
Solved
I've built a responsive site using Twitter Bootstrap here: http://zarin.me/cce/
The responsive design works great on iPad and iPhone, however when I flip the device from portrait to landscape, the...
Epley asked 22/6, 2012 at 23:35
5
API Demos -> Graphics -> Compass
It works properly only, until you don't change the device natural orientation.
In most phones is the portrait and most 10 inch tablets are the landscape. If you ch...
Wynd asked 13/9, 2013 at 9:28
1
I'm trying to read absolute DeviceOrientation event values to create HTML5 compass Mobile Web App.
If I'm using this code, I can get alpha, beta and gamma values without a problem:
window.addEven...
Dime asked 10/4, 2018 at 11:32
1
I'm using sensor data of type ROTATION_VECTOR in my app.
Using my Nexus 5 I can get azimuth from orientation[0] and can get the phones heading in the range shown in the picture below (it's very ac...
Dianoia asked 29/10, 2015 at 18:13
2
Solved
Anyone with DeviceOrientationEvent experience and a phone/tablet handy?
Running the following code snippets on a gyroscope-having device, I notice gamma (rotating left/right along y-axis) gets lar...
Tingaling asked 5/1, 2017 at 18:15
2
I've been using 'deviceorientation' for my project and when testing on iPhone/iPad, it behaves normally in landscape mode, but has an irregularity in portrait mode.
Here are the steps to repeat:
...
Sasin asked 24/3, 2014 at 12:34
1 Next >
© 2022 - 2024 — McMap. All rights reserved.