portrait

CSS: Disabling automatic rescaling of font-size on iPhone

岁酱吖の 提交于 2019-12-24 15:44:05
问题 As explained here, the Apple iPhone (i.e. Safari) rescales the font-size when the viewport changes (i.e. from portrait to landscape or vice versa). The accepted answer to that question says that, in order to disable this behaviour, one should add: -webkit-text-size-adjust: none; (Note: in other posts I've also seen '100%' instead of 'none', which may be preferable, but the distinction seems irrelevant here.) Accordingly, my main question is why, when I view the following HTML test-file on my

How to correctly show an image in portrait mode in html?

谁说我不能喝 提交于 2019-12-24 04:58:15
问题 I'm using some simple photos on my website of which some are in landscape mode, and others in portrait mode. I use the most basic html possible: <img src="/doc/54836abcc1a36b7526daa146"> When I visit the url ( /doc/54836abcc1a36b7526daa146 ) directly in the browser I correctly see the image as standing/portrait mode, but when I use it in the html img-tag, it displays in landscape mode. Is this because I don't use an extension (like e.g.: .jpg ). Or is something else wrong? Does anybody know

Android portrait video orientation wrong in VideoView

孤街醉人 提交于 2019-12-22 03:48:07
问题 I capture a new video in PORTRAIT orientation on an Android device like this: Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(intent, 1886); and it gives me this file: "/mnt/sdcard/DCIM/Camera/video-2012-02-02-10-45-48.mp4" Then I play it like this: private VideoView videoView = (VideoView) findViewById(R.id.videoView); String videoUrl = "/mnt/sdcard/DCIM/Camera/video-2012-02-02-10-45-48.mp4"; videoView.setMediaController(new

Android portrait video orientation wrong in VideoView

萝らか妹 提交于 2019-12-22 03:46:28
问题 I capture a new video in PORTRAIT orientation on an Android device like this: Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startActivityForResult(intent, 1886); and it gives me this file: "/mnt/sdcard/DCIM/Camera/video-2012-02-02-10-45-48.mp4" Then I play it like this: private VideoView videoView = (VideoView) findViewById(R.id.videoView); String videoUrl = "/mnt/sdcard/DCIM/Camera/video-2012-02-02-10-45-48.mp4"; videoView.setMediaController(new

UISplitViewController not showing popup button when launching portrait

心已入冬 提交于 2019-12-21 06:59:28
问题 I am doing an iPad app based on a UISplitViewController. I have a little problem with the toobar button when my app launched in potrait. The button to show the popover is not displayed. However when I rotate my iPad into landscape and then back to portrait, the button shows ! It looks like the following method is not called on launch (this is were I have the code showing the button): - (void)splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *

Replicate camera app rotation to landscape IOS 6 iPhone

故事扮演 提交于 2019-12-21 04:28:12
问题 Hi I am trying to replicate the same rotation which can be seen in the camera app when orientation is shifted to landscape. Unfortunately I've had no luck. I need to set this up for the custom cameraOverlayView with UIImagePickerController. From this portrait (B are UIButtons) |-----------| | | | | | | | | | | | | | B B B | |-----------| To this landscape |----------------| | B | | | | B | | | | B | |----------------| In other words I would like the buttons to stick to the original portrait

UISplitViewController: How force to show master popover in app launch? (portrait)

跟風遠走 提交于 2019-12-20 16:26:06
问题 In an iPad App i'm using the UISplitViewController. I need to force to show the master popover when the app launch in portrait mode. Now I'm using this code and it works well on iOS 5.0. if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { if ([[[AppDelegate sharedAppDelegate] splitViewController] respondsToSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]) { [[[AppDelegate sharedAppDelegate] splitViewController] performSelector:[[[AppDelegate sharedAppDelegate]

UISplitViewController: How force to show master popover in app launch? (portrait)

泪湿孤枕 提交于 2019-12-20 16:25:13
问题 In an iPad App i'm using the UISplitViewController. I need to force to show the master popover when the app launch in portrait mode. Now I'm using this code and it works well on iOS 5.0. if (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { if ([[[AppDelegate sharedAppDelegate] splitViewController] respondsToSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]) { [[[AppDelegate sharedAppDelegate] splitViewController] performSelector:[[[AppDelegate sharedAppDelegate]

Set the orientation to portrait from code

不想你离开。 提交于 2019-12-20 03:19:50
问题 I know I can limit the orientation from the manifest file. Like this android:screenOrientation="portrait" But is it possible to set the orientation from code ? for example setting the activity to full screen can be done both from manifest and from code this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 回答1: setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); 回答2: Activity. setRequestedOrientation(..) 来源: https:/