Skip to main content
Filter by
Sorted by
Tagged with
356 votes
53 answers
193k views

Our QA has detected a bug: when rotating the Android device (Droid Turbo), the following RecyclerView-related crash happened: java.lang.IndexOutOfBoundsException: Inconsistency detected. ...
KarolDepka's user avatar
  • 8,688
1 vote
1 answer
797 views

I'm trying to lock the rotation of my application using a bunch of methods that apple have now deprecated over the years and I'm at a loss. There isn't a SceneDelegate or AppDelegate in Xcode projects ...
LiamPalmqvist's user avatar
1 vote
0 answers
130 views

As per the title, I am trying to lock the rotation of my application in Portrait but I am not succeeding, being developed for tablet every time I try to rotate the simulator, the application rotates ...
Marco's user avatar
  • 78
0 votes
1 answer
97 views

I am facing this an issue when changing from between screen sizes (Tavle, Foldable, Phone) in the Android Emulator: java.lang.ClassCastException: androidx.compose.foundation.layout....
Mark Delphi's user avatar
  • 1,809
0 votes
0 answers
47 views

I'm trying to rotate the screen of the user's device. So far, the code below works great on all devices I've tested except the Amazon Fire TV Stick. While the screen does rotate, any video playing in ...
user avatar
1 vote
1 answer
157 views

I wear a smartwatch (Galaxy Watch 4) with the screen facing my wrist, and for greater convenience, I would like to rotate the screen not 90 degrees, but approximately 40-45 degrees. Unfortunately, I ...
Trevor Philips's user avatar
0 votes
1 answer
11k views

My Samsung Galaxy S21 has suddenly decided that when I rotate the phone between portrait and landscape mode, it won't rotate its display unless I touch the soft-button which briefly appears. How can I ...
Richard Parkins's user avatar
54 votes
5 answers
57k views

I have an ArrayList with custom objects that I would like to be able to save and restore on a screen rotate. I know that this can be done with onSaveInstanceState and onRestoreInstanceState if I ...
Kalina's user avatar
  • 5,604
89 votes
13 answers
48k views

I read a lot on how to save my instance state or how to deal with my activity getting destroyed during screen rotation. There seem to be a lot of possibilities but I haven't figured out which one ...
Janusz's user avatar
  • 190k
1 vote
1 answer
678 views

Hi I wanna fix the bug which occur in IOS16 for rotation screen I refer to this article, but it's still not working.... BTW we used the Object-c instead of Swift Reference UIWindowScene *...
Ymorp's user avatar
  • 13
0 votes
0 answers
34 views

I am working on an app to keep track of scores in a grid like format. I am using Kotlin and Room Database to store everything (playerId, gameInstanceId...). The storing works perfectly fine and every ...
Christof Plieschnegger's user avatar
0 votes
1 answer
80 views

I want to prevent my app from the rotation, but I don't want to specify the screen Orientation in every activity tag in the manifest file instead I want to define it only once in my application which ...
Sumita Das's user avatar
1 vote
1 answer
191 views

The background: I answered a user question about how to create a blurred image of a text view's contents using simple demo code. I then decided to generalize my solution and refactored my demo app to ...
Duncan C's user avatar
  • 132k
0 votes
0 answers
140 views

I have orangepi4 running on ubuntu server without xorg and mipi display for it. By default, the screen orientation is portrait. I have developed a PyQt5 application that, when launched with an hdmi ...
cepko84's user avatar
38 votes
12 answers
24k views

I have a very simple application: - All orientations are permitted with only a button on a screen - The button show a UIImagePickerController (to take a photo) - Build with Xcode 5 and SDK 7 On iOS 8,...
Kevin Hirsch's user avatar
34 votes
9 answers
26k views

I have this app I am working on and I need ALL my view controllers but one to be in portrait. The single one view controller that is special I need it to be able to rotate to whatever orientation the ...
Mihai Fratu's user avatar
  • 7,683
0 votes
0 answers
143 views

I have an Objective C app that includes an 'orientation lock' switch, that allows users to switch off response to device orientation changes during some functions, so that rotating the device doesn't ...
Chris Hughes's user avatar
49 votes
6 answers
46k views

I have developed an app in Honeycomb and I am using fragments. This is my app I have an Activity (Say A1) and in that there is a fragment Initially this fragment hold the object one fragment object ...
Jithin's user avatar
  • 1,765
0 votes
2 answers
2k views

I have an UIViewController that supports all UIInterfaceOrientationMasks But, in one certain case I need to prevent it from rotation Before iOS 16 i was just handling this case like this override var ...
Dmitry Zheshinsky's user avatar
1 vote
1 answer
2k views

I have been facing a problem with React Native screen orentation. I am using expo and run my app through expo go on an Android device. According to the documentation: Multiple screen orientations ...
Chew123Bacca's user avatar
6 votes
0 answers
2k views

I am working on an app which uses viewcontrollers and I am slowly migrating to use views built using SwiftUI. I am working on new swiftUI views, so i am setting UIHostingController as the ...
NNN's user avatar
  • 563
-2 votes
1 answer
232 views

I'm working on an app that uses a Scrollview -> StackView -> button, imageview, textview view hierarchy. (I'm building the view programmatically rather than using storyboard. I'm using a ...
rdk's user avatar
  • 109
0 votes
0 answers
577 views

I have a problem I can't solve. I have two fragments, one called "NotificationListFragment" that can navigate to a second fragment called "InfoNotificationFragment". Before calling ...
Davide's user avatar
  • 1
1 vote
2 answers
2k views

There's really no code snippet for this. I'm building an Android app in Android Studio in Kotlin with a main activity in both default portrait and lanscape modes. I'm using Android Studio auto-...
Carmen DiMichele's user avatar
2 votes
1 answer
686 views

I want to change orientation of some pages in my app in Xamarin Forms. I am using Visual Studio 2019 for Mac and Xcode version 12.4 I have used DependencyService. It is working fine till iOS 15 but ...
BSB's user avatar
  • 277
36 votes
9 answers
44k views

I´m having this issue with iOS 6 SDK: I´m having some views that should be allowed to rotate (e.g. a videoview), and some that don´t. Now I understand I have to check all orientations in the app´s ...
stk's user avatar
  • 6,491
0 votes
1 answer
122 views

I'm new to Android and making some toy apps to try things out for my own amusement. I want to make an app that starts in whichever orientation the user is holding the phone but then stays in that ...
hippietrail's user avatar
  • 17.3k
1 vote
1 answer
210 views

I am fairly new to iOS and am a bit stuck on this issue. The problem is that when I rotate the device from landscape to portrait in SFSafariViewcontroller the DONE button gets pushed up. See image ...
Nilo's user avatar
  • 45
4 votes
3 answers
16k views

I tried using react-native-orientation in a webview to get it being the only view that would rotate. import React, {useEffect} from 'react'; import { WebView } from 'react-native-webview'; import ...
schmru's user avatar
  • 619
34 votes
5 answers
44k views

I started looking into PhoneGap yesterday and created a simple "marble" rolling around while tilting the phone. I am currently developing on Android but I want the orientation to stay as landscaping ...
Phil Jackson's user avatar
  • 10.3k
0 votes
1 answer
192 views

How to lock ImageView orientation when rotate screen in Kotlin? simply how to freeze ImageView (as background) when rotate activity? Trying: I tried to change a image in LinearLayout as background, ...
User_Michel's user avatar
0 votes
1 answer
130 views

I have applied a gradient to a custom UIView by adding a CAGradientLayer. While this works fine there is small glitch when rotating the device and the view + layer with it. For a short moment the ...
Andrei Herford's user avatar
0 votes
1 answer
208 views

I have an issue with updating the area(frame) of .onTapGesture after a device is rotated. Basically, even after changing @State var orientation the area where .onTapGesture works remain the same as on ...
imnikita's user avatar
32 votes
8 answers
8k views

I have a UIWebView included in a UIViewController which is a descendant of UINavigationController. It looks like this: The app is portrait only. When I play the video I want the user to be able to ...
entropid's user avatar
  • 6,259
9 votes
1 answer
7k views

Foreword. I know this question has been asked several times in the past, but none of the solutions have actually worked for me. It's also been several years since a similar question has been asked (...
AlexH's user avatar
  • 1,147
2 votes
2 answers
761 views

I have a customized keyboard created by code, it is a unique input view for a specific textfield. I implement this in my project: let keyboardContainerView = KBContainerView(frame: CGRect(x: 0.0, y: 0....
user13126278's user avatar
1 vote
1 answer
2k views

I'm trying to make a script that adjusts the SafeArea of my Canvas when the device is rotated. I've got it almost working and it looks great on-launch, but I'm getting a weird result after rotating ...
Nerrolken's user avatar
  • 1,995
11 votes
1 answer
2k views

For UIKit to disable the device rotation animation you could override the viewWillTransitionToSize method. Disable orientation change rotation animation But what would be the best way to achieve this ...
adelmachris's user avatar
19 votes
4 answers
26k views

I am making an iOS app that needs to do a little interface rearrangement upon rotation. I am trying to detect this by implementing - (void)orientationChanged:(NSNotification *)note, but this gives me ...
Undo's user avatar
  • 25.7k
0 votes
1 answer
334 views

I have an iOS application that will have a number of SpriteKit scenes. These scenes should remain in the same orientation on the screen in both portrait and landscape. For example one scene will have ...
wjd's user avatar
  • 3
1 vote
1 answer
662 views

I am having Bottom navigation menu, and each menu is having their separate viewpager with 3 tabs. Everything works fine in portrait mode but once rotate the device Viewpager is reset to that of first ...
Rafa's user avatar
  • 155
0 votes
1 answer
57 views

This is a question that I actually know the answer to from discovery today, and I'd like to share the answer with you and also with my future self who might have forgotten. So the problem is that by ...
mathems32's user avatar
  • 385
0 votes
0 answers
62 views

I am attempting to calculate a full 360 degree rotation from a captured starting angle while the phone is being held vertically in either portrait or landscape. I can easily get a starting angle by ...
Sean Marchiafava's user avatar
1 vote
0 answers
335 views

I am rotating the screen from landscape to portrait but the screen works abnormally when I do this. The screen size gets small. The app is working fine in android API version 23 but with 29 this issue ...
Alex Advent's user avatar
1 vote
0 answers
348 views

I experience a weird issue when working with Replay Kit. Specifically, when I call startCapture, the app no longer responds to rotations. It locks the current orientation RPScreenRecorder.shared()....
Ross Stepaniak's user avatar
0 votes
1 answer
383 views

(I know this question has been asked many times before, but none of the answers that I have read have helped.) After I rotate my device, my fragment is recreated but the Bundle received in onCreate/...
titaniumdecoy's user avatar
0 votes
1 answer
184 views

I'm trying to save all the values & clicks from user during screen rotation, but my button click and text view isn't working. I've spent so many hours trying to figure out what to write inside ...
ryan's user avatar
  • 61
1 vote
0 answers
824 views

I'm working on a nice screen rotation animation in my iOS app. When the screen's size changes, I update the (Metal) model inside it accordingly. The problem is that I have visual content "jumps&...
olha's user avatar
  • 2,302
2 votes
1 answer
2k views

I've got the following code which works fine on iPhone, but not on iPad. It should lock the orientation on landscape and disable autorotation only for THIS viewcontroller (not for the whole app - NOT ...
David 's user avatar
  • 283
20 votes
3 answers
5k views

With the introduction of Xcode 6, Apple removed the ability to easily have multiple storyboards for iPad and iPhone in Universal apps. Due to this, you cannot differentiate between iPad and iPhone on ...
InfinityLoop's user avatar

1
2 3 4 5
11