Questions tagged [orientation]
Orientation is the way up, down, left or right something is facing or being held in. Typically, you distinguish between Portrait (or Vertical) and Landscape (or Horizontal) orientations.
4,124
questions
0
votes
0
answers
8
views
Is it possible to get the orientation of a Macbook Pro?
I know CoreMotion works for iOS devices, but I am curious if enough sensors exist and are exposed to APIs like CoreMotion such that you can tell when the laptop is standing on its side?
0
votes
1
answer
23
views
Set orientation to portrait and upside down for iOS project
I have an iOS project where I want to be able to show the app only in Portrait and Upside Down mode.
I did the following:
Checked Portrait and Upside Down in target -> General -> Deployment ...
0
votes
0
answers
10
views
Change Text property Orientation in Visualbasic
How to change this Text property in visual basic ?
0
votes
0
answers
18
views
React Native : Find device rotation angle (Orientation)
I'm trying to get the device rotation angle for Android in React Native.
Is there any useful library? I found some for only iOS, and some not worked for me, checked the Stack Overflow but the ...
0
votes
2
answers
27
views
how to build gyroscope above the current phone direction
public class GyroControl : MonoBehaviour
{
private bool gyroEnabled;
private Gyroscope gyro;
private GameObject cameraContainer;
private Quaternion rot;
private void Start()
{...
0
votes
1
answer
19
views
How to get screen orientation (including upside down options) now that getDefaultDisplay() is deprecated?
I've been using this code for many years and it works perfectly:
final int orientation = myActivity.getWindowManager().getDefaultDisplay().getRotation() * 90;
The * 90 part happens to yield rotation ...
1
vote
0
answers
54
views
Xamarin radio buttons not displayed with Orientation = "horizontal"
Follow-on question to xamarin radio buttons not displaying.
I've created a public git repo at https://github.com/GrumpyPacker/HR to reproduce the issue. Since the data that I'm displaying in the ...
0
votes
0
answers
12
views
3D game data, how to optimally determine specific world axis and euler angle system used by creator?
For a 3D video game with the following properties for each object in a "map" dataset :
position: [x,y,z],
rotation: [x,y,z]
It's not clear how the world axis is orientated relative to the ...
1
vote
1
answer
45
views
xamarin radio buttons not displaying
I have a content page with the following data template for RadioButtons:
<DataTemplate x:Key="RadioTemplate">
<StackLayout Padding="0,2,0,0">...
1
vote
3
answers
111
views
How to turn off screen rotation animation while switching from landscape to portrait and vice versa
In app during some transitions between screens (from app mode with veritical lock to game mode with horizontal lock ) I use
await SystemChrome.setPreferredOrientations([
DeviceOrientation....
0
votes
0
answers
10
views
Upload Failed: App Store Connect Operation Error
Invalid Bundle. iPad Multitasking support requires these orientations:
'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,...
0
votes
1
answer
37
views
Layout fails to update when going back to view controller with different device orientation (UITabBarController)
My app has a main UITabBarController with 5 tabs (each one is a UINavigationController). The tabs contain various UI elements, such as UITableViews (with and without custom cells), UISegmentedControls,...
0
votes
1
answer
74
views
Can I set Bitmovin video to go fullscreen on device orientation change?
I am having a Bitmovin player instance and I am trying to force fullscreen when device orientation changes to landscape. Code goes like this:
const portrait = window.matchMedia("(orientation: ...
-1
votes
1
answer
10
views
Fragment screen cuts out while changing the orientation and background color omitted while switching to other app
I want to show some data in a table inside a fragment once clicked a button in mainActivity. Since the table is wider, i change the orientation of the screen to landscape before dynamically creating ...
0
votes
2
answers
59
views
How to detect device rotation (orientation change) in flutter?
My app has a draggable floating action button that could move everywhere on the screen and stay at that position when being dropped.
The code for the button is from a blogspot and not mine.
The ...
0
votes
0
answers
18
views
How to make onConfigurationChanged callback triggered ONLY when orientation changed in Android Service?
I need to monitor the orientation change of my app in a Service. I do it by overriding the Service #onConfigurationChanged function, then judge the Configuration#orientation value in it. But ...
1
vote
2
answers
34
views
How to determine Arc's Orientation in Java
I am generating 2D arcs using the following code.
final Arc2D.Double arcPath = new Arc2D.Double();
arcPath.setArcByCenter(centerPoint.getX(), centerPoint.getY(), radius, fDXFArc.getStartAngle(), ...
0
votes
0
answers
13
views
what happen when we change orientation from landscape left to landscape right in Android?
In my app, when I am changing orientation from landscape left to landscape right, I am not getting callbacks like onCreate(), onCreateView(), onResume(), onPause(), even onConfigurationChanged() etc.
...
0
votes
1
answer
33
views
How to fit an ellipsoid using inertia tensor?
I've a dataset of coordinates of long elliptical defects inside a material. I want to fit an ellipsoid to this dataset and find the 3 axes of the defect.
My dataset looks something like this: https://...
1
vote
0
answers
35
views
Android Studio - orientation of Fragments when using Navigation graph / component
Okay - I have same issue as quite a few others have had in the past - and there are plenty of posts with the solution, but somehow the solution doesn't work for me.
In Android Studio (Bumblebee - 2021....
0
votes
0
answers
43
views
Css image-orientation seems to ignore none and use EXIF data when displaying image in my test code
I'm working with overriding image-orientation from different devices. In my test code the setting of 'none' never seems to take effect. The images always display as if the EXIF orientation data from ...
0
votes
1
answer
88
views
Avoid restart on orientation change for react native + android 12
Problem -
My react-native app suddenly keeps restarting whenever I change the device orientation.
This was working 2 months back.
I started experiencing the problem after I upgraded my android version ...
0
votes
1
answer
119
views
Android Studio Chipmunk issue with Orientation for Preview
I have been using AS-Bumblebee for a couple of months with a new project. Recently I started adding landscape pages to the App. Clicking the Orientation for Preview button gave a dropdown list which ...
0
votes
1
answer
52
views
How to change gene/arrow direction/orientation in gggenes arrowplot?
Newbie here,
I have made an arrowplot with associated colours and managed to turn the gene direction for reverse strand, however, there is ONE gene that should be the other way, how do I do this?
This ...
0
votes
1
answer
357
views
How to lock Orientation for a particular screen in ios in react native?
I want to lock the orientation of my camera screen.
<Stack.Screen name="Camera" component={Camera} options={{ headerShown:false,orientation:'landscape'}}/>
This works fine in android ...
0
votes
0
answers
164
views
Flutter screen rotation triggers overflow
Description : the issue I'am facing is that when I force rotate my screen in Flutter it does paint the layout and THEN rotate the screen. So before the rotation flutter show an overflow bar for some ...
0
votes
1
answer
120
views
How to set EXIF Orientation value to 1 in HEIF (.heic) image formats using Javascript and return the result as a blob?
I have a blob created from an HEIF image which probably contains EXIF Orientation value. I'm using heif2any.js to convert it to JPEG image but I want to prevent double-rotation problem stated in this ...
0
votes
0
answers
49
views
Rotation matrix from body frame to an arbitrary navigation frame
I'm trying to combine IMU displacements with the time of flight sensor readings in order to navigate through the indoor environment with a non-linear Kalman filter variant. In the graphic below, I ...
0
votes
0
answers
25
views
how to get the orientation of an image in javafx? Also how to fix the orientation if that is rotated
I am trying to insert image in mysql database using JavaFX. When I retrieve and display the image using ImageView, some images are correctly oriented while some are rotated ( particularly the images ...
0
votes
1
answer
22
views
Rotation reverting on Mac display settings
I have four Dell monitors connected to Mac Pro. Rotation reverts to Standard for other displays if I change one to 90 degrees in System Preferences -> Displays. This used to work before the forced ...
0
votes
1
answer
64
views
iOS get Camera orientation
on iOS, is-it possible to get the Camera orientation (in degrees) like Android ?
Camera.CameraInfo info = new Camera.CameraInfo();
Camera.getCameraInfo(cameraId, info);
int degrees = info.orientation;
...
2
votes
3
answers
96
views
Python create list based on letter index of existing list
So I am trying to work on a script which allows me to take a text file,
rotate the layout 90 degrees and keep all the letters in the correct orientation (as opposed to having the letters turn sideways)...
0
votes
2
answers
30
views
Filter Images Based on Orientation applescript doesnt respond correctly
I am working on a project that i have to short ton of photos every day in 2 folders, landscape and portrait. I found this applescript
global logFolder, logFilename
global landscapeFolderPath, ...
0
votes
0
answers
25
views
Swift Orientation Calculations Work Differently on iPad
The code below is called by the VC that starts my app on ViewDidLoad. On iPhones in the simulator, it works exactly as intended, with a panel in the centre of the view. On iPads, it does not, with the ...
0
votes
0
answers
121
views
Flutter enable screen rotation even if it is disabled by system
I'm trying to build camera app. I have implemented the basic functionality using official's example https://docs.flutter.dev/cookbook/plugins/picture-using-camera
It works fine, I can take picture ...
0
votes
0
answers
29
views
WKWebview landscape
I want rotate WkWebview but set Orientation did not working.
When loading the pages or pdf files, the orientation turns,
but in other cases(ppt, png, website...), it does not turn as like it were ...
0
votes
1
answer
25
views
How to set XSSFSheet orientation to Landscape .NET NPOI
How do I set the Print Orientation of an XSSFSheet to Landscape in .NET?
I can only find Java related solutions for this, and this doesn't work in .NET:
printSetup.setLandscape(true);
0
votes
0
answers
36
views
Quaternion rotation
I am trying to solve the problem of sign language. To do this I am using a glove with an IMU sensor of 9 axes. The orientation of the hand and fingers should give a gesture value. I am trying to train ...
0
votes
0
answers
63
views
How to determine whether any text is rotated by 180 degrees without Tesseract
I want to figure out if some text is rotated by 180 degrees. I've checked this but people are offering solutions using Tesseract, and this is not applicable for low characters count such as having a ...
0
votes
0
answers
9
views
How to fix the code to run accurately in portrait mode?
The code below work fine for landscape mode 360 view.
Link to check: https://metagrid1.sv.vt.edu/~swmohd/npolys/ICAT2021/ICAT2021/Stroubles_2021/_Multi1.html
but, I want this code to also work in case ...
0
votes
0
answers
8
views
Prompting user when viewing a website on an ipad to turn orientation to landscpape
I am wondering what I need to do when a user is viewing a website on an iPad / tablet device that they are prompted to rotate the iPad to landscape if it is in portrait mode.
I have done some research ...
0
votes
0
answers
73
views
Locking orientation at run-time on demand
I currently have the following code:
PROCEDURE LockOrientation(Orientation : TOrientation);
BEGIN
{$IFDEF MOBILE }
VAR ScreenService : IFMXScreenService;
IF TPlatformServices.Current....
1
vote
0
answers
44
views
React native application is not using the simulated screen correctly
I recently moved my project from using Expo to React Native CLI. One problem I encounter is that the application is using the Ipad screen in landscape mode, as it was an iPhone in portrait mode. Even ...
0
votes
1
answer
86
views
MediaQuery.of(context) causing error in Flutter app
I have had this problem of android emulator Keyboard disappearing after clicking on TextFormField that I exposed in this topic
Here is the error :
Unhandled Exception: 'package:flutter/src/animation/...
1
vote
0
answers
89
views
Initializing quaternions from a 9dof IMU with semi-correct values
I am building and application where I need to switch an IMU on for around 5 seconds, and get a good orientation within the first 1-2 seconds. I am using the Madwick quaternion algorithm and it works ...
0
votes
1
answer
63
views
Changing the Orientation Smoothly for SDK from App
I know the question related to orientation has been asked multiple times, but I am facing some weird issue.
I am working on one SDK that has some Activity which can be opened from the App, The SDK ...
0
votes
1
answer
89
views
CVPixelBufferRef: Video Buffer and Depth Buffer have different orientations
Right now I'm working with Depth camera at iOS since I want to measure distance to the camera of certain points at the frame.
I did all necessary setup in my camera solution and now I have two ...
0
votes
0
answers
20
views
Creating Portrait PowerPoint Slides in Rmarkdown
Does anyone know how to change the orientation of PowerPoint Slides in with Rmarkdown? I can't find any other instance of someone asking this.
Thanks!
0
votes
1
answer
143
views
flutter How to update UI towards Alert dialog box?
I'm making an app that supports both landscape and portrait mode.
I'm using the Orientation widget to detect if it's portrait or landscape.
Most UIs change their size and layout normally. However, the ...
0
votes
1
answer
98
views
Keep orientation changed for full device flutter Android 11
Using the following code I'm able to change the orientation of the device in app
void rotate(orientation) {
if (!_isEnabled) return;
var property = DeviceOrientation.landscapeRight;
...