Questions tagged [screen-orientation]

Detects whether the screen is in portrait orientation (height > width) or landscape orientation (width > height), and switches between the two. This term is especially used in mobile devices, where applications are notified when the user rotates the device.

Filter by
Sorted by
Tagged with
0votes
0answers
5views

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 ...
user avatar
  • 21
0votes
0answers
15views

Screen rotation not working for some composable screens

In my single Activity compose app some composable screens will rotate as one would expect when I turn my device to be in landscape mode. Others, however, never go to landscape mode no matter how I ...
user avatar
0votes
0answers
28views

How to Parcelize a MutableList in kotlin?

I have an App that lets users drag and draw boxes on a custom view. I want to persist the state of these boxes(list of boxes) across orientation change using onSavedInstanceState(): Parcelable and ...
user avatar
0votes
1answer
15views

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 ...
user avatar
  • 304
0votes
4answers
50views

How to make android landscape layout work without refreshing activity?

I have seen answers regarding this with removing android:configChanges for the landscape layout to work but then this will refresh the activity and I need to avoid that. Some answers suggest ...
user avatar
1vote
2answers
38views

optional split string ascii char

Is there a ascii char (non printable) to suggest where to split a string when needed. This in order to show in a cell correctly, even when the screen is rotated. I use buttons in a 5x2 grid in this ...
user avatar
0votes
0answers
24views

expo screen orientation ios on navigation event

Expected: Screen orientation changes back to portrait on navigation event. Actual: Screen orientation unchanged. Works correctly on android but not on IOS. Changing the return statement of the ...
user avatar
  • 405
0votes
0answers
28views

Android RecyclerView and addOnScrollListener

This is My file where I want to fetch position on screen rotation. and my saveInstance state But I am Facing a logical error while the screen is rotated I am getting a position for first but ...
user avatar
0votes
0answers
23views

Cant lock screen orientation on iPad iOs

NOTE i am aware there are many post about this already. But all are somewhat outdated and not a single one fixes the issue hence i am posting a new one. Issue Cant lock a specific screen orientation ...
user avatar
  • 667
0votes
0answers
15views

Selenium mobile emulation PORTRAIT mode

I am trying to add stories to my IG account via selenium automation. I can run it successfully on mobile emulation. When I click to add a story it says rotate your device to add yo your story. It ...
user avatar
0votes
0answers
43views

Screen orientation in flutter on android devices works wrong

In my flutter app I need a two screen orientation types. Some screens must be a portrait up and some screens must be portrait up and landscape left. So, in build method I use SystemChrome....
user avatar
  • 1
0votes
0answers
23views

How to allow landscape for tablets, but prevent it on mobile phones?

I'm forcing portrait mode on mobile phones, class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { SystemChrome....
user avatar
  • 507
0votes
0answers
17views

Unable to access app specific internal Storage

I'm trying to save state during rotation and repopulate a list with specific files I've created in internal app storage. currentFile = new File(this.getFilesDir(), timeString); After accessing the ...
user avatar
1vote
0answers
22views

Stop fullscreen HTML5 video rotating on trigger

If I trigger fullscreen in Chrome Android, portrait mode it automatically rotates the fullscreen video to landscape. To get it back to portrait fullscreen I have to rotate the device landscape then ...
user avatar
  • 911
0votes
0answers
25views

Flutter recognise device orientation changed even when Potrait mode is forced

in my app I have a page to take photos. When rotating the device, the page should be locked in potrait mode and only the icons in the appbar should rotate. (The behavior is identical to the iOS camera)...
user avatar
1vote
1answer
69views

Block landscape mode in flutter only for one page | Flutter

I want to block the landscape mode for some pages in my application and that page should always be in portrait. I Tried some code but that make entire application portrait.
user avatar
0votes
0answers
27views

How to adjust the vertical and horizontal screen on a device?

I have an app built in Cordova that works by moving the tiles to form words. In the browser it looks correctly as you can see in the example that I show code. The problem arises when I run the app on ...
user avatar
1vote
0answers
93views

Using vue-youtube package the player is not getting initialized in iOS after switching orientation

I am trying to run a youtube video using vue-youtube package. The video plays fine in portrait and landscape mode in all Android/Mac/Windows in all browsers. However when you switch between portrait ...
user avatar
1vote
1answer
828views

React Native, expo-screen-orientation

I am working on IOS React Native Project (using expo with bare workflow). By default my app use portrait mode, but sometimes I need change screen orientation to landscape mode. I use expo-screen-...
user avatar
  • 31
0votes
0answers
12views

Buttons leave screen when switching to landscape mode

I have been trying to design the landscape orientation view for days now. There are many different answers to solve this issue but I am not sure why nothing is working for me. As I have in the ...
user avatar
0votes
0answers
33views

react native - support multiple screen style

I am researching about supporting phone and tablet using react native. As far as I know, we can use the ratio to scale screen for phone and tablet. However, if the screen is looking good on phone, it ...
user avatar
  • 1,705
2votes
1answer
81views

How to Lock Mobile Phone Screen Orientation In Flutter? (Not in Tabs/ iPads)

I have developed an app using flutter. Now I want to lock it's screen orientation only in mobile phones. Because I cannot provide the functionalities for mobile landscape mode as there is not an ...
user avatar
1vote
1answer
52views

Changing the screen orientation in the Android Manifest does not have any effects

I would like to have my app only in landscape mode. For that I use the suggested code in the Android manifest that is recommended here Force "portrait" orientation mode However, on the ...
user avatar
  • 468
0votes
1answer
53views

Connecting two ImageViews with each other with a line correctly on different screen-sizes and screen-orientations

I am looking for a way to connect two ImageViews with a line. The position of the ImageViews on the screen always differs. I want to draw these lines as reactions to a click of the user, so I need a ...
user avatar
0votes
0answers
25views

How to detect side placement of navigation bar from portrait orientation

On all the Android phones I've tested with, the navigation bar appears at the bottom of the screen in portrait orientation and the side of the screen in landscape orientation, but on all the tablets I'...
user avatar
  • 8,039
0votes
1answer
16views

Flutter App: Orientation Builder change causes Stream to have a ConnectionState of waiting instead of active

I have a simple app that pulls data from Firestore. I wanted to make it more user-friendly on web, so I added an OrientationBuilder that will place the Drawer next to the body when the orientation is ...
user avatar
  • 33
0votes
0answers
127views

How to better manipulate viewpager2 with layout variation fragments on orientation change?

Hello everybody i have a problem with my android app. I tried hard to understand it but i cannot completely understand, how much to find a solution.I have my main activity with a viewpager2 and ...
user avatar
1vote
0answers
61views

Changing the orientation/ configuration resetting the motion layout to start constraint set

I have an activity that supports landscape and portrait orientation. The root layout of the activity is a motion layout. After the motion layout animation, if I change the device orientation, the UI ...
user avatar
  • 2,659
1vote
1answer
76views

How to keep fragment in activity during orientation change?

I have framelayout in activity and two fragments that I need to attach to the activity depending on the user's choise. When I attach one fragment and change orientation, my fragment gest destrotroyed ...
user avatar
  • 153
0votes
1answer
62views

can we config the screen orientation for particular screen in React Native?

I am new to react Native. am stuck in a issue, is it possible to lock a Particular screen in Landscape in react-native ? in other words can we config the screen orientation for particular screen ? ...
user avatar
0votes
0answers
132views

Detect if device auto orientation mode turned on or off in Flutter

I'm working on this app that uses a video player. In here I use 2 main options to change the orientation of the player, which are the fullscreen button, and the auto rotation feature (changes ...
user avatar
1vote
1answer
400views

Screen.orientation not changing the UI elements placements as desired from Landscape to portrait in Unity on the fly but does on restarting the Game

I am facing rather a strange problem while using Screen.orientation. I am working on a Sudoku game .I have designed in the settings a toggle radio option to change the screen orientation from Portrait ...
user avatar
0votes
1answer
38views

On changing screen orientation to LANDSCAPE initially, triggers sensor orientations then loads in PORTRAIT

I am creating an app where I need to set LANDSCAPE screen rotation manually, and then it should work as per the ORIENTATION sensor. But on setting screen rotation to LANDSCAPE initially, it triggers ...
user avatar
0votes
2answers
408views

How to apply screen orientation to portrait too all the layouts at once android studio

Hello im making an app where i want is that all the layouts should be lock in potrait inshrot i want my app in potrait even user try to make it in landscape i have some idea but dont if it works or ...
user avatar
2votes
0answers
118views

ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP) is not working on IOS

I have react native expo and I'm trying to lock the screen on portrait, so I downloaded ScreenOrientation. I putted this: ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP) on ...
user avatar
0votes
0answers
55views

Cannot change Orientation from React-native after defining it in Swift

My App runs in PORTRAIT mode unless it's playing a Stream or a Video. So I use an iOS specific SDK to play streams and I had to control the orientation in Swift. Now I also want to use 'react-native-...
user avatar
1vote
0answers
293views

Next.js - Lock screen in landscape mode

I am working on a canvas animation project using Next.js. I want it to open in landscape orientation (in case of mobile phones), so I have added the following code in index.tsx: useEffect(() => { ...
user avatar
0votes
1answer
116views

how you can render a video in fullscreen when rotating the device

I'm trying to render a video in fullscreen when rotating the device on my Ionic application. I'm using this plugin to catch the device rotation, and the FullScreen API. window.screen.orientation....
user avatar
0votes
1answer
265views

how to handle view rotations like youtube do on android?

I want to achieve the way youtube handles its video orientation. There are a few things to have in mind before just saying that I have to use onConfigurationChanged. THINGS TO CONSIDER The phone ...
user avatar
0votes
0answers
21views

How to handle the orientation at the launch of the app

I have been trying to handle the orientation of my app, using UIDevice.current.setValue(), but it does not really solve my problem. Indeed, I have some of the views of my app that I want to be only in ...
user avatar
1vote
0answers
257views

AdMob Interstitial Landscape-only Orientation

I have an [Android, Java] game which runs in landscape orientation and shows AdMob interstitial ads. I noticed that the ads we displaying in the orientation in which the device was when the app was ...
user avatar
  • 3,714
0votes
1answer
38views

UnityEngine screen size fit every Android device

How can I make my game screen fit every Android device. The problem every answer I find is for 2d. I want for 3d games.
user avatar
0votes
2answers
58views

Popupmenu is closing when screen rotated

I am using a popupmenu like below; popupMenu = PopupMenu(view.context,view); val menuInflater:MenuInflater = popupMenu!!.menuInflater; menuInflater.inflate(R.menu....
user avatar
  • 556
0votes
1answer
41views

Screen rotation possible on Progressive Web App but not on Native android app

I am building an app with Goodbarber, an app builder that allows users with no IT development skills like me to build native apps. I am contacting you because I have a problem with my native Android ...
user avatar
0votes
0answers
186views

Modal not rotating to landsape screen in React native?

I have an issue with rotating the Modal to landscape screen. I'm trying to figure out what i'm doing wrong, when i open the modal for the first time the modal rotates but if i tried to open it again ...
user avatar
  • 39
0votes
0answers
33views

Moving Android Views(layout) to a specific point ( rotating some views only instead of whole activity) on Orientation Change

Asslam o ALaikm (greet, best wishes ) for all you !! i am not able to embed images, please check the app (similar) https://play.google.com/store/apps/details?id=com.jkfantasy.gpsmapcamera i am facing ...
user avatar
0votes
2answers
93views

How to detect that changing activity rotation is not possilbe in some android devices?

I am working on an android app that is used on both Android mobile and Android TV devices. I have a portrait activity. It works well on normal mobile but on Android Tv devices, it shows a rotated ...
user avatar
1vote
1answer
128views

Flutter android orientation stuck in landscape mode

Since very recently the orientation of my Flutter app is hardstuck in landscape mode. At first there weren't any issues with the orientation. The only way to fix it currently, is by forcing portrait ...
user avatar
0votes
1answer
65views

how can i change the number of columns and rows of flatlist depending on the screen orientation in react native?

i am working on react native mobile app project, In the home screen it have 6 options, i want to show 2x3 when in portrait view and 3x2 when in landscape view
user avatar
0votes
1answer
587views

Screen Orientation in Expo Managed App React Native

I'm relatively new to React Native and am building an app using an Expo managed workflow. I have my application's orientation set to "portrait" in my app.json. While this keeps the ...
user avatar
  • 55

15 30 50 per page
1
2 3 4 5
32