screen-orientation

VideoView & Fullscreen & Orientation changes - Android

让人想犯罪 __ 提交于 2020-01-11 05:08:57
问题 I implemented a e-Reader that has embedded video players on it, I need a option to toggle fullscreen mode from the player. My question is the following: Which is the best way to play a video on fullscreen and let the user come back from this state to the page he is reading before and also keep the current time of the video. Another complicated situation I need to handle is: There's different visualizations of a page on portrait and landscape, if the user toggle fullscreen on portrait and

JQuery Mobile Beta 1 is not resizing the screen on iphone when rotated to landscape

大憨熊 提交于 2020-01-11 03:07:16
问题 I am writing mobile app with JQUery Mobile Beta 1 and was expecting that the screen should adjust automatically on iphone when rotated from portrait to landscape and vice versa but it is not happening. I simply checked with opening this link (Beta 1 doc demo) http://jquerymobile.com/demos/1.0b1/docs/pages/page-template.html but it is also not adjusting the screen. Am I missing something? EDIT: It seems to be same for Beta 2. I checked the demos & docs iPhone and it behaves similarly. I need

How to fix strange behavior of date picker UIView when changing screen orientation in Objective-C?

半世苍凉 提交于 2020-01-06 04:30:09
问题 I have this project that requires to change the screen orientation of application once the user will pick a date using datePicker . Once the user tapped the Date button, It will show the datePicker The first image is the correct layout of the datePicker when portrait mode. Correct Portrait Layout When changing the screen orientation from Landscape to Portrait . It will appear the issue. Please refer to image below. The datePicker is located below Which is the image below should be the correct

Swift manually rotate view controller

北城以北 提交于 2020-01-03 03:45:11
问题 So I'm working on an iOS 10 app using Swift 3 and Xcode 8.3.3. In my app I have to take successively 8 pictures with indicators on the camera. So I'm using AVCaptureVideoPreviewLayer for the custom camera and I need to set the view displaying the camera on landscape mode. I did it using this extension that I found on stackoverflow while searching for the problem. struct AppUtility { static func lockOrientation(_ orientation: UIInterfaceOrientationMask) { if let delegate = UIApplication.shared

Force Landscape mode in single page in Xamarin iOS?

别来无恙 提交于 2020-01-02 09:11:32
问题 I use a dependency service to force landscape for a single page in Android and iOS, this is for Android: public class OrientationService : IOrientationService { public void Landscape() { ((Activity)Forms.Context).RequestedOrientation = ScreenOrientation.Landscape; } public void Portrait() { ((Activity)Forms.Context).RequestedOrientation = ScreenOrientation.Portrait; } } it works well and as required: forcing the landscape mode, even the the device orientation in hand is portrait, I need to

Portrait Orientation?

醉酒当歌 提交于 2020-01-02 07:23:09
问题 How do I lock the orientation of my phonegap application to portrait? My current config.xml is using this preference: <preference name="orientation" value="portrait"/> However it makes no difference and I can still orientate my application in both orientations by rotating my mobile test device. Also if you know of a an active phonegap/cordova community could you please post a link? 回答1: If you are working with Android you can add android:screenOrientation="portrait" to the main activity tag

Prevent Live Wallpaper orientation change when an application is opened and orientation is changed?

自闭症网瘾萝莉.ら 提交于 2020-01-01 08:28:09
问题 I'm having an orientation issue with a Live Wallpaper that I wrote. Basically the canvas will rotate depending on the application opened above it. I tested this and realized that the onSurfaceChanged() method is firing when I return to the home screen from a previously opened application who's orientation was changed. I suppose a better question would be, why does my Live Wallpaper Surface Change when an application is opened and it's orientation changed? Is there a way to prevent my Live

How to control screen-orientation for iPhone in web app

蓝咒 提交于 2020-01-01 05:33:07
问题 I have a very basic web page that uses flot to create a canvas based graph (similar to what SO uses for reputation graph). In the case of a PC display, it should simply output normally, with a the width (x-axis) being 1.6 times the height. But for iPhones, I would like it if, rather than having it overflow in "portrait" orientation, the page defaulted to landscape orientation, encouraging (or forcing) the user to turn their phone to see the chart as PC users would. So my questions are: 1) Is

iPhone Safari CSS rotation bug

会有一股神秘感。 提交于 2020-01-01 03:41:10
问题 I have a small mobile phone app that is acting strangely on the iPhone/Mobile Safari. The page renders and works great when it's orientation is vertical. When I rotate the phone horizontally some, but not all elements on the page resize correctly. Some header elements will stay nearly their same size, maybe increasing by 10%, others will double in size. Has anyone run into this? My first thought was that the css could have a mix of sizes based on ems and px's but finding every size element

Lock orientation until Asynctask finish

a 夏天 提交于 2020-01-01 02:34:10
问题 Only want to block orientation until all the data is loaded in my view. So I thought about the following code but it doesn't work. private class task extends AsyncTask<String, Void, String> { protected String doInBackground(String... params) { ... } protected void onPostExecute(String result) { ... setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR); } protected void onPreExecute() { ... setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR); } } When I run these two