screen-rotation Questions

53

Our QA has detected a bug: when rotating the Android device (Droid Turbo), the following RecyclerView-related crash happened: java.lang.IndexOutOfBoundsException: Inconsistency detected. Invali...

5

Solved

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 ...
Roturier asked 19/9, 2012 at 22:34

0

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 rootViewC...
Shue asked 2/12, 2022 at 16:45

1

Solved

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 th...
Affine asked 27/12, 2020 at 1:31

3

Solved

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 ...
Dishonest asked 27/1, 2020 at 9:8

3

In my Android Layout, I have a TextView. This TextView is displaying a rather large spannable text and it is able to scroll. Now when the phone is rotated, the View is destroyed and created and I h...
Paganism asked 21/3, 2011 at 18:29

1

Trying to understand what cause the window leak in my Activity. The activity extends AppCompatActivity. It has a single view with a RecyclerView and a ProgressBar invisible while rotating. @Overri...

6

Solved

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 ob...

6

In adopting the new UISplitViewController I'm trying to make a change a default behaviour that occurs when using the UISplitViewControllerDisplayModeAutomatic mode. When working in portrait I want...
Marsipobranch asked 28/8, 2014 at 20:56

1

Solved

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 ...

2

Solved

I am trying to do something like this: Basically, I am using a UICollectionView and the cells (3 diferent .xib). So far, it works. The thing I want to do is: Set a autoheight If rotate, add 1...
Barriebarrientos asked 1/11, 2018 at 22:2

4

Solved

I am inflating a few EditTexts and adding them to a LinearLayout: private void setupCommentViews(){ int i = 0; Iterator<CommentInformation> iterator = commentInformations.iterator(); whil...

2

When using Auto Layout in a storyboard there's an option to keep a constraint installed or not with an "Installed" checkbox. Disabling it will cause it to behave as if you didn't add that constrain...
Andromeda asked 1/2, 2015 at 6:11

9

Solved

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 ...
Outplay asked 13/9, 2012 at 15:42

4

Solved

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 ...
Magnetics asked 16/1, 2013 at 22:41

3

Solved

I have gone through different posts and questions for handling rotation and AsyncTask. In each post it is mentioned that using android:configChanges is a bad practice. But i didn't find the actual ...
Emigrant asked 13/6, 2016 at 10:11

8

Solved

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 ...
Margarettmargaretta asked 27/10, 2014 at 23:58

13

Solved

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...
Branks asked 12/4, 2010 at 9:17

4

iOS 9.0 (13A340) Xcode 7.0 (7A220) OS X 10.10.5 (14F27) I have a situation where if I rotate the simulator or device (using iPhone 6s sim and iPhone 6+ device), the animation does not also take pl...
Walling asked 29/9, 2015 at 15:49

9

Solved

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 t...
Ouch asked 15/6, 2014 at 12:40

1

I have a video player in which I have two features: If the auto-rotate is disabled and when the user clicks on fullscreen button I force the orientation to go in landscape view using setRequested...

5

Solved

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 landscapin...
Practicable asked 21/3, 2012 at 8:40

0

I have two controllers: MainController, which supports only portrait PhotoController, which supports all orientations. These are contained in a navigation controller. This scenario doesn't wor...
Anana asked 12/3, 2017 at 3:48

1

I have a two button objects in activity this object has some move animation with ObjectAnimator these animations work perfect but when the animation is run in background i want to rotate device som...
Trying asked 11/1, 2017 at 15:10

3

Solved

I have a simple app consisting of a single view controller. I started with the Xcode 7 GM Single View Application template, but then deleted the main storyboard, and set up my view controller like ...
Tenorio asked 12/9, 2015 at 5:0

© 2022 - 2025 — McMap. All rights reserved.