Skip to main content
Filter by
Sorted by
Tagged with
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
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
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
795 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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
0 votes
1 answer
437 views

I am currently working on an Android App written in Kotlin with Jetpack Compose. My goal is to get a responsive app that runs on smartphones and tables responsively. To do this I get the user's curent ...
lprend's user avatar
  • 172
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
0 votes
1 answer
650 views

I'm exploring if the landscape "Safe Area insets" can be presicely known in viewWillTransitionToSize when rotating from Portrait to Landscape. I've seen this SO answer, its code is rather a ...
olha's user avatar
  • 2,302
0 votes
1 answer
910 views

I have a simple app that has a Button and a TextView, when I try screen rotation, the TextView stays same while the Button disappears as below. The Button comes back when I rotate the screen again. ...
GLHF's user avatar
  • 4,094
-1 votes
1 answer
332 views

I have a problem with injection dagger into view model.The problem is that losing form inputs when rotating the screen.Is the problem in my injection or initialize my view model? Here is my viewmodel; ...
emreturka's user avatar
  • 876
0 votes
1 answer
32 views

I am using a tabbed Activity. In one of the tabs I have two buttons and a Recyclerview. In the RecyclerView I have two spinners and an edittext. The purpose of the first button is to add a new item in ...
Hédi Guellouz's user avatar
0 votes
0 answers
88 views

For every rotation of a device onCreate function is called and all data lost. But I need to run a particular function in onCreate for every rotation of device.
Kishan's user avatar
  • 19
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
0 votes
1 answer
524 views

May I check how can I rotate screen via code in Android? The device (Android 6 ARM CPU) I am using does not have sensor to detect orientation change and I need to do it manually. The problem of this ...
scsfdev's user avatar
  • 355
3 votes
0 answers
3k views

I have problems with the screen orientation in Mozilla Firefox. It seems to me that screen.orientation is not supported in Firefox. We are building a SPA with Angular 9 and using webrtc inside of it, ...
ToelliJ's user avatar
  • 61
0 votes
1 answer
202 views

I have been trying to use the ML Kit Vision Quickstart Sample App to develop a blink detection app. For this, I have been using the Face Detector module with the CameraX library. On installing the ...
VishalR's user avatar
2 votes
1 answer
490 views

I have two Views and two content pages, in one I have them arrange vertically and it's shown when the device is on portrait mode, something like this: <StackLayout> <Grid> ...
Estefania Hernandez's user avatar
0 votes
1 answer
105 views

after I thought that I finally finished my android app, I discovered that when my phone screen rotates, my application crashes. so after doing some research, I figured out that I have to add this line ...
rana hd's user avatar
  • 377
2 votes
1 answer
484 views

I am able to clamp the z rotation of my game object using the code below, but it always changes the y rotation on my first touch. I only want to rotate the z-axis. private float zRotation; public ...
Seve's user avatar
  • 39
0 votes
1 answer
327 views

I'm getting very strange error messages with Xcode 11.5. Having device rotation support enabled, I get a bunch of error messages telling me "=== AttributeGraph: cycle detected through attribute ...
leonboe1's user avatar
  • 1,185
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
0 votes
2 answers
1k views

I present a UIViewController out, which uses autolayout to set the constraints for the sub views inside the view of the view controller. all the constraints are kept in the code, without storyboard ...
whitekevin's user avatar
0 votes
1 answer
654 views

I am trying to take an image from filling the right hand side of the screen when viewed in horizontal orientation, to the top quarter when viewed in portrait. I've followed lots of guides and points ...
tim.baker's user avatar
  • 3,293

1
2 3 4 5
11