I developed a Windows 8 Metro App. Now I wanted to test what happens if I rotate the screen but I do not have a device which is capable of this.
Is there a way to trigger this manually? I can rotate the screen manually with my ATI driver but I don't thinks this is what happens if I rotate some tablet?
Best Regards
For testing, the Simulator in Visual Studio will enable you to do this.
I'm not sure if this is a video driver-dependent setting, but with the Windows 8 systems I've used, I could manually rotate the display via Ctrl+Alt+arrow. Left = 90 degrees, Down = 180, Right = 270.
Related
I have notice a strange behaviour executing a simple test for my app.
The app is running on a tablet device.
In portait mode, before rotation, i have the correct font size.
I rotate the device in landscape mode and the app is stretched correctly
I rotate again the app in portrait mode but the font size is
decreased.
Somebody know why this happen?
How can I avoid this behaviour.
I'm going crazy for 3 days without found a solution
EDIT
Testing the app with another device (8' display), the problem is still present.
The problem is present too testing the app with visual studio simulator !!
I don't think is a code problem because my app has 4 pages with 4 different
ListViews and the problem is present in all pages.
I notice that the font size change when the device is rotate for the first time from portait to landscape.
The destination FontSize in landscape mode could be accettable, but when in portrait mode i need (is a customer requirement) to go back with the original Font Size
I created a single view test app and tried running it on my iPhone 5 with iOS 7 installed. It looks like the screen is set to the iPhone 4 size and black bars appear above and below the view controller. I just created the project with Xcode 6 and tried running it without touching any other settings. Has anybody else seen this?
In order to solve this problem you have to create launch-screen images for the devices your app supports.
When starting a new app:
For instance let's say your app supports iPhones > 4s, so iPhone: 4s, 5, 5s, 6 and 6plus.
Make sure to make launch-images which have the following dimensions:
iPhone4s = 640 × 960
iPhone5, 5s = 640 × 1136
iPhone6 = 750 x 1134
iPhone6plus = 1242 x 2208
For more info about iOS screen dimensions, see this helpful chart
Select your project and then the general settings:
Select or make launch screens in the general section when clicked on your project.
And then make sure you add or select an Launch-image asset:
Go to images.xcassets and select LaunchImage at the left, then select the devices your app supports (at the right)
Make sure you put your images on the right spot, you can select the dashed square and see in the attributes inspector (right section on screen) what dimensions your image needs to meet.
Now when simulating your app all black bars have disappeared.
You need to add a Default-568h#2x.png launch image. Here is one that I found by googling (I didn't create it and take no credit for it):
https://jira.appcelerator.org/secure/attachment/31241/Default-568h#2x.png
If you want to create your own image its dimensions have to be 640 × 1136. Since you did no customizing the filename should be "Default-568h#2x.png".
For some reason, the default LaunchScreen.xib that comes with a new project on Xcode 6.1 is 480x480, while the standard .xib file size for auto layout and adaptive layout appears to be 600x600. If you set the LaunchScreen.xib view size to 600x600, it should fix the problem, did for me.
Make sure you add a launch image for your device screen size and that will fix your problem.
I have had the same issue. In my universal app I configured orientation for iPad and iPhone and forgot to set back devices drop down to Universal (on target general settings screen). When I set it back - screen shows as expected.
how can I programmatically set a windows 8 application to snapped view? Also, what happens if the screen resolution is 1024 where snap is not allowed? Will an exception occur when calling this function?
To answer your question - how can I programmatically set a windows 8 application to snapped view?
Seems it is not possible. Please refer following link.
http://social.msdn.microsoft.com/Forums/en-US/winappsuidesign/thread/263b39dd-89d4-4f39-96dc-596a500fa10a
I'm teaching myself Android (using a book) and I've downloaded Tea Vui Huang's Droid X skin for the using with the Android SDK in Eclipse. When I run the emulator, the top of the window showing the Droid X's screen runs off the top of my laptop screen. Is there anyway to make the skin smaller? This happens with the WVGA854 skin that comes with Android, too. Is this just the fact that the real Droid X screen is 854 pixels high, and my laptop is 768 high, and there's no way to "shrink" the Droid X emulator display?
There is a Windows trick that lets you move windows who's control bar has moved off screen. I thought I could use it to slide the Window up and down so I could sequentially see the top and bottom, e.g. to access the app-tray button at the bottom of the screen. Windows won't let me do this...once I start this trick, it won't let me leave the top of the window off-screen.
Any advice appreciated. Thanks.
You need to run it with -scale command line option.
I'm currently developing for a handheld device running Windows XP Professional (not Tablet PC edition). The device allows users to switch from the standard widescreen landscape display format to a portrait one. I would like to know if there are any VB.NET code snippets to help me along with this task.
The way to determine the current orientation is with the System.Windows.Forms.SystemInformation.ScreenOrientation property.
To get the actual size of the screen, check System.Windows.Forms.Screen.PrimaryScreen.WorkingArea.Height (and .Width)
You can declare an event handler (with the AddHandler statement) for Microsoft.Win32.SystemEvents.DisplaySettingsChanged as a trigger your app can respond to, and then check the screen orientation to see if you need to adjust your GUI layout.