screen-rotation

Rotate screen when HTML5 video playing in fullscreen

99封情书 提交于 2019-12-22 09:33:39
问题 First of all, i would like to apologize for my bad level in english, and for all the mistakes i might have done in this post. I'm also a "junior" in Android devloppement (i'm doing this on my free time), i'm not good and experienced enough yet ^^ so sorry if i might have some difficulties to understands the answer you might give me. So what i'm doing ? I'm creating a simple Android App. It's just a Webview to load my website. My website is just a random Youtube video player. First i had the

UITableView correcting scroll position after device rotation

我的梦境 提交于 2019-12-21 06:37:09
问题 I'm building something like a reader for a book. When the user rotates the phone I want to increase the font size. I'm using a UITableView to display chunks of text. Problem is that, increasing the font size increases height of rows in my table view and if I was reading paragraph 320 in portrait mode I get 280 or something similar in landscape mode. I have set up a rotation notification listener using this code: UIDevice *device = [UIDevice currentDevice]; [device

Tab change on screen rotation [Android]

不羁岁月 提交于 2019-12-21 06:24:09
问题 Hi I have Android APP with 4 tabs (let's say tab1, tab2, tab3, tab4). When activity starts default tab is tab1. Than I switch to any other tab (tab2, 3 or 4) and change screen orientation and it always resets to default tab (tab1). I tried with the following code: @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); setContentView(R.layout.main); createView(); } And inside createView() I have: private void createView() { ... // Tabs

iOS OpenGL ES screen rotation while background apps bar visible

大城市里の小女人 提交于 2019-12-20 23:29:06
问题 My app uses GLKit to render 3D scene with OpenGL ES . All works fine, except one thing. When I launch my app in iPad and display background apps bar (with double "Home" button click) and then change device's orientation, scene is updated wrongly (last rendered image is simply stretched to fill new rectangle). I found the reason. When background apps bar appears, GLKViewController's paused is set to YES automatically (application delegate receives -applicationWillResignActive: ) and no

Building project with Xcode 6 (iOS 8 SDK) causes landscape rotation rendering issue on iPad

只愿长相守 提交于 2019-12-20 06:22:22
问题 We have a project that behaves as desired when built using Xcode 5.1.1 (iOS sdk 7.2), but when build using Xcode 6.2 (iOS sdk 8.2) there is a rotation rendering issue on the iPad. On the iPad our app only supports landscape left and landscape right. When you rotate from one to the other, on the rotation animation the screen rotates from upside down to right side up, but when it does this it lands in the wrong position. (The bottom-left corner of the screen ends up approximately 200 pixels up

Can I transition between view controllers without a rotation animation?

荒凉一梦 提交于 2019-12-19 11:45:12
问题 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 work well: The device is physically in landscape mode, with MainController on screen, so the UI is in portrait mode. We push PhotoController on the navigation stack. The UI rotates with a rotation animation. Technically, it works as intended. But the rotation animation is jarring in terms of UX. I want the

iOS 6 rotations: supportedInterfaceOrientations doesn´t work?

守給你的承諾、 提交于 2019-12-17 15:28:12
问题 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 Info.plist and then sort out in each ViewController, what should happen. But it doesn´t work! The app always rotates to the orientations, that are given in the Info.plist. Info.plist: <key>UISupportedInterfaceOrientations</key> <array> <string>UIInterfaceOrientationPortrait</string> <string

Unable to force UIViewController orientation

自作多情 提交于 2019-12-17 13:28:49
问题 I have a portrait application with one landscape ViewController. I've been digging a lot on how to force the orientation to landscape when the app is locked to portrait and I tried a lot of solutions presented here and not only but without any luck so far. So far I managed to autorotate the VC I need in landscape but since the orientation is not locked, all other VCs will also rotate. override func viewDidAppear(animated: Bool) { let value = UIInterfaceOrientation.LandscapeRight.rawValue

Retain the Fragment object while rotating

余生长醉 提交于 2019-12-17 08:31:07
问题 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 object say (F1) Then depending on the user actions it may change to other objects F2,F3 .... What my problem is When The user rotate the device the activity is recreated and which make F1 as the fragment object even though before rotating it wasn't What is the way to retain the fragment object while

Black background when view rotates on orientation change

纵饮孤独 提交于 2019-12-14 02:18:33
问题 I am fiddling with an orientation change responsive app in Xcode and am trying to figure out how I can change that my non-black view seems to rotate on a black background on orientation change! It looks something like this: I would like to change the black background to the colour of my view - which is pink in the depicted case. When my app launches it also shows a black screen until the actual view appears. I have the feeling that it is the same black that becomes visible on orientation