Better than a long description, I made some schemas :)
The 2 native use cases show the classical behaviours when I rotate my tablet.
Native Landscape mode use case
Native Portrait mode use case
Now, I would like to be able to rotate virtualy my tablet and see on the 2nd screen in Portrait mode.
In other words, the tablet remains in landscape with the view rotated 90° and the 2nd screen shows view portrait.
Wished behaviour use case
But I encountered 2 issues:
1/ The 2nd screen remained in landscape mode with 90° rotation when the "lock rotation" feature is enabled.
Behaviour issue when lock rotation enabled
2/ The tablet toggled into lanscape because of autorotation and the 2nd screen stayed in portrait mode but the view is the landscape one.
Behaviour issue when lock rotation disabled
So to do that, I found Display.exe to rotate my view and it's a good start.
But it seems that the software is not designed to handle the wished use case.
Is there some extra configuration on Windows 10 to change in order to force duplicated screen to be in portrait mode?
Other ideas to reach my goal are welcome!
Thanks all,
Kelson
Related
I am building a Launch Storyboard for iOS 13 compliance.
I am constructing the 'splash screen' from several images. It's the last one that's the problem.
To get the scale right in Portrait, I select the device range (iPad), and portrait, then click 'Vary for Traits' (all before any constraints have been placed on the ImageView)
After I make all the constraints to get it looking right on all iPad devices in portrait mode, I deselect 'Vary for Traits' and then change orientation.
Now the UIImageView is incorrect (rightly so) and so I click 'Vary for Traits' and set all the constraints to get it looking right for landscape.
Then I deselect 'Vary for Traits' and click on Portrait - but now all the portrait constraints are conforming to the landscape ones.
The problem, as I can see is that for all the iPad devices, they have the same wR and hR regardless of Landscape or Portrait...
Is there a way I can still have different constraints depending on orientation? Or am I going to have to do all this in code?
For what it's worth to others, I managed to get an acceptable compromise, buy removing some text from the central image and replacing it with UILabels that I could better 'scale'.
I also used different constraints (where previously I was keeping the main image and title / logo centred H/V with equal width/height to the background and then using the multiply to scale it) I changed them to having all edges 0 to the overall superview and then using the constants to move the top or left and right to get the 'scale' I needed.
It's now looking pretty good in all devices and orientations.
Thanks to everyone who helped.
Landscape mode handle when auto screen orientation is ON and easily turn to portrait. But Auto Screen Orientation is Off then forcefully change supported orientation which effect on if Auto Screen Orientation is ON. Pls tell me these things in WP
How check auto screen orientation of setting ON or Off?
Another way to change orientation of screen contents?
To specify that your app supports portrait and landscape, you must set the SupportedOrientations property to PortraitOrLandscape either in the XAML or in the code.
Add this piece of code in your XAML within the <phone:PhoneApplicationPage>
SupportedOrientations="PortraitOrLandscape"
Take a look over here
Hope it helps!
Read this quick start tutorial on how to gracefully handel orientation change in windows phone 8
Screen orientation for Windows Phone 8
In short, if you need to support both orientations than first you need to change your SupportedOrientation in you page xaml SupportedOrientations="PortraitOrLandscape"
Then handle orientation Changed Event in the code for UI related changes(as explained in above artical)
You can use following page property on page load to check the current orientation of the screen when it is loaded.
this.SupportedOrientations
Hope this helps
So I'm still getting accustomed to the world of Auto Layout in iOS 6 and it's been a fun (or in plain English -- tough) migration coming over from strings & struts.
I have a UIImageView that's the background for a game I'm working on. Here's what a regular 3.5" Retina Display looks like in Interface Builder:
but if I change the "Size" pop-up in the Simulated Metrics field for the content view to "Retina 4 Full Screen", here's what I see:
And you can see the ugly black bar appearing along the bottom edge of the simulated iPhone 5 screen. This same ugly black bar makes it over to the compiled app running in the iPhone 5 simulator.
Are there any attributes or constraints I can apply via Interface Builder to get the UIImageView's frame to size correctly for the appropriate iPhone device screen size?
Or do I have to enter in constraints via code? (ugh)
I've watched the three WWDC videos and if the engineers covered the topic of sizing a view to fit a parent, they must have glossed over it really fast because I've haven't yet found or heard a decent method to get both UIImageView and NSImageView to size correctly to their parent views under both the iOS and MacOS side.
From what you're showing here, I think that what you want to do is drag the image to meet the bottom of the superview so that it takes up all of the space you want. On the bottom right in the IB view you will see a small, grey pill-shaped set of 3 buttons. Click the center one (once you have your imageView selected). It's the one that looks a little like this: |--|. It will bring up a list of constraints. Once you have done that, select "Bottom Space to Superview". You should then be able to switch between phones and have the image resize automatically.
I have a directdraw application (in c) that becomes black in color once the user rotates the screen using a button on the application. The button uses enumdisplaysettings to do this. I have tested this on both Nvidia and ATI, the problem persists.
Is there a way to make a directdraw application "displaysettings-proof"? Can I add some code to get back the display once the screen is rotated?
You can use IDirectDraw::RestoreDisplayMode to reset the display mode to whatever it was before IDirectDraw::SetDisplayMode was called. I'm not quite sure if this is what you want however.
I am using three20 to present a photo essay of a story I made after the February earthquake in Chile. I would like the app to display portrait type images when iPad device is in portrait orientation and landscape type images when iPad device is in landscape orientation.
So there would be two versions of every image, one cropped for portrait viewing and one cropped for landscape viewing and the app would show the version that is appropriate for the orientation the device is in.
I will crop these image versions separately. That way, the app would make full use of the screen in all orientations and users will read the story like a magazine.
Ideally, the view would change over to the corresponding image, staying where it is in the sequence of images, when the user rotates the device, so from portrait #4 to landscape #4 and vice versa, for example. But, if this is not possible, jumping back to the first image whenever iPad device is rotated is acceptable as well (push to separate TTImageViews maybe?)
The idea is to give to user the experience he is reading an illustrated story in all orientations. Can this be done? If so, can you give some clues?
If it can not be done putting a specific image in the background with the image viewer overlaying it may also be a solution. If separate fullscreen views for each orientation are not possible, then at least I would like to get rid of the black "autoresizing mask" parts of the screen..
Many thanks!
diederik