orientation-changes Questions

25

Solved

I am using Swift and I want to be able to load a UIViewController when I rotate to landscape, can anyone point me in the right direction? I Can't find anything online and a little bit confused by ...
Nagoya asked 4/9, 2014 at 13:3

13

Solved

I am attaching a listener to the orientationchange event: window.addEventListener('orientationchange', function () { console.log(window.innerHeight); }); I need to get the height of the documen...
Paschal asked 17/9, 2012 at 2:3

2

Solved

In Android, when the screen orientation changes (between landscape and portrait) the onCreate method is called which ,if not handled properly, will recreate the entire activity when the result is t...

7

Solved

I want to get the phone orientation but keep the screen orientation to portrait. So no matter the user turns the phone to landscape or portrait, the view stays the same, but I can get whether it is...
Lightfooted asked 26/1, 2012 at 16:50

4

Solved

I have bottom navigation and replaced the tag with FragmentContainerView. It gives me an error stating that it does not have a NavController set. I posted this question on StackOverflow and fixed t...

2

Solved

I use Apache POI XWPF to create and handle MS Word documents. But I didn't find in the documentation how to change the page orientation. Apparently this way should make it: XWPFDocument doc = new...
Salvation asked 25/11, 2013 at 9:50

1

Solved

I am using the PhotoView library in my Android project. The project contains the SaveStatePhotoView which is used to keep the state (zoom level, position) of the image view on configuration changes...

3

Solved

I have a recyclerview having different layouts for portrait and landscape. When the activity starts, the recyclerview populates with data irrespective of the orientation. But if the orientation is ...

1

I have a RecyclerView inside a AppCompatActivity. Item insertions and changes are shown and animated correctly after rotating the device. The problem happens when you: Tap on an item in the Recy...

2

My problem: For some requirements i need two different xml layouts for my activity: One for Landscape mode. And another one for Landscape-reverse mode (upside-down of Landscape). Unfortunately...

3

Solved

I'm trying to find a method call I can latch onto once a device's orientation has changed. Is there something identical to didRotateFromInterfaceOrientation that isn't deprecated?
Lineman asked 6/8, 2015 at 20:7

3

Solved

Because the Android SDK 23 gives users the possibility to deny apps access to certain functionalities I wanted to update one of my apps to request permissions as it is described in here: https://de...

7

Solved

(please read UPDATE 3 at the end)I'm developing an app that continually works with the sensors of device, works with Accelerometer and Magnetic sensors to retrieve the orientation of device(the pur...

8

Solved

Summary: I can't force the CALayer to respond correctly to orientation changes. Whenever I try to use cgaffinetransform I am getting weird results (layer is not centered). Any help will be apprec...
Rutland asked 30/9, 2012 at 18:38

4

Solved

I have an app which shows fullscreen bitmaps in an activity. In order to provide fast loading time, I load them in the memory. But when the screen changes orientation, I would like to clear t...
Aquarius asked 19/8, 2013 at 19:33

1

I'm been searching for a way to check the Siri Remote's current orientation or to register for Siri Remote orientation changes, but I haven't found anything yet. Is it possible to do this (without ...
Pyuria asked 16/12, 2015 at 18:14

1

Solved

I am utilizing the PhotoView class by Chris Banes to be able to zoom into an image and see it, but I want to make it so that when I change the orientation, the photo will still be zoomed in after t...

3

Solved

Question In an Android service, I want to detect whenever the screen rotation changes. By rotation, I don't just mean portrait versus landscape; I mean any change to the screen rotation. Examples o...

6

Solved

I have 3 fragments and an activity. I want to enable tabs on the ActionBar and assign a Fragment to each of the 3 tabs. How do I hook that up correctly? ORIGINAL POST I have an app that I'm devel...
Puppetry asked 31/10, 2011 at 19:9

3

Solved

Is there a way to call the orientationchange event inside an AngularJS directive? I'm currently working with angular-masonry and I'm trying to update/refresh masonry when the orientation of the ...
Breakdown asked 10/4, 2014 at 14:49

5

Solved

I'm migrating my dialogs, currently using Activity.showDialog(DIALOG_ID);, to use the DialogFragment system as discussed in the android reference. There's a question that arose during my developme...

4

Solved

In portrait mode, my ViewPager has 3 fragments A, B, C but in landscape mode, it has only 2 fragments A and C. So I create 2 FragmentStatePagerAdapters for each mode. The problem is when screen ori...

2

Solved

It appears that API level 13 has ("silently" as far as I can tell) introduced a change to how android:configChanges attribute is handled. In my particular case, when "targetSdkVersion" in the app ...
Abb asked 27/7, 2011 at 17:28

2

Solved

Please note, this question is not a duplicate of the following: https://stackoverflow.com/questions/19006776/onactivityresult-not-working-with-fragments onActivityResult not working on fragments ...
Hoseahoseia asked 23/1, 2014 at 8:55

5

Solved

As far as I've understood, your Android activity will be recreated for the new orientation on any orientation changes. Is there a way to store / save some of the data from the original orientation...
Sandstorm asked 23/8, 2011 at 21:23

© 2022 - 2024 — McMap. All rights reserved.