Questions tagged [landscape]

A page or device orientation in which the horizontal axis is longer than the vertical axis.

A page or device orientation in which the horizontal axis is longer than the vertical axis. Contrast with portrait orientation, where the vertical axis is the major axis.

1434 questions
24
votes
4 answers

How can I rotate display only in landscape mode in android?

I want that my View rotates only in landscape mode, clockwise and counterclockwise. I read about the only counterclockwise for android < 2.2 and that's not a problem, my App will be +2.2 for now. I modify my manifest to catch Configuration…
rubdottocom
  • 8,110
  • 10
  • 39
  • 59
24
votes
6 answers

Mobile site - force landscape only / no auto-rotate

I have a site that has a mobile stylesheet: I'm also using jQuery to check for mobile devices and alter functionality accordingly. But I want to know if there is a way to force…
Joey
  • 10,504
  • 16
  • 39
  • 54
23
votes
2 answers

android camera stretched in landscape mode

The app I'm writing requires camera functionality. So to learn about how to operate the camera, I followed this script: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html I have put the…
Joey Roosing
  • 2,145
  • 5
  • 25
  • 42
23
votes
6 answers

SwiftUI Force Portrait On All Except One View

I have a SwiftUI project. For all but one of the views, I want to allow portrait and only portrait mode. For only one view, I want to allow both portrait and landscape. There are some resources on Swift but I couldn't find any on SwiftUI. Did anyone…
berkabbasoglu
  • 305
  • 1
  • 3
  • 7
23
votes
4 answers

How to prevent a Phonegap application to switch to landscape view

This one should be very simple, however it's not. I'm trying to prevent my application from going into landscape view so I've changed the config.xml file like this: . Unfortunately, it's not working.…
DMEM
  • 1,573
  • 8
  • 25
  • 43
23
votes
9 answers

UIImagePickerController in Landscape

I have been searching for an answer to this, but cannot come up with anything. Apparently, iPhone SDK 3.0 made it possible that UIImagePickerController can be displayed in landscape mode - but I am not finding any method that will allow this. I…
23
votes
5 answers

GameCenter authentication in landscape-only app throws UIApplicationInvalidInterfaceOrientation

Problem: If user is not logged into GameCenter account - GameCenter authentication view is launched in portrait mode (in ios 5 there were a modal dialog) asking to log in. But if I disable Portrait mode in xcode (Project Summary) or in…
Tertium
  • 6,049
  • 3
  • 30
  • 51
21
votes
2 answers

css expanding based on portrait or landscape screen size?

I have two divs that are floating next to each other. What i would like is to have it have a width of 100px when you are looking at it in portrait mode and lets say 200 px in landscape. This happens viewing on a mobile device actually. So the…
Xtian
  • 3,535
  • 11
  • 55
  • 91
19
votes
9 answers

How to play video full screen in landscape using exoplayer

I am using exoplayer to play video from url in my android app. In portrait everything work as expected (using viewpager, fragments and tabs inside activity). My goal is to play the video in full screen when the user is in landscape. It means only…
19
votes
7 answers

AVCaptureVideoPreviewLayer landscape orientation

How can I get 'AVCaptureVideoPreviewLayer' to display properly in landscape orientation? It works fine in portrait but doesn't rotate, and shows a rotated camera capture when the parent view controller is in landscape orientation.
Ege Akpinar
  • 3,266
  • 1
  • 23
  • 29
19
votes
4 answers

MPMoviePlayerViewController | Allow landscape mode

I'm trying to stream a video in my app. The method I've found is : NSURL *theMovieURL = [NSURL URLWithString:self.data.trailer]; if (theMovieURL) { self.movieController = [[MPMoviePlayerViewController alloc]…
Nicolas Roy
  • 3,773
  • 5
  • 27
  • 42
18
votes
5 answers

Run the application in Landscape mode only?

I want to run a Hello World sample application only in landscape mode on my Device. If the device changed to portrait, I would then like to raise one toaster. For example "please change to landscape mode to run your application". How should I do…
Praveenkumar
  • 24,084
  • 23
  • 95
  • 173
18
votes
6 answers

iPhone Landscape FAQ and Solutions

There has been a lot of confusion and a set of corresponding set of questions here on SO how iPhone applications with proper handling for Landscape/Portrait mode autorotation can be implemented. It is especially difficult to implement such an…
Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
18
votes
6 answers

UIWindow with wrong size when using landscape orientation

I have an empty application and there is no storyboard or xib involved. I want to have a hidden status bar and support only landscape orientation. Again, I wan't to make those changes only within code and don't touch the Info.plist. Problem I create…
Joa Ebert
  • 6,565
  • 7
  • 33
  • 47
15
votes
2 answers

ios9 mobile safari landscape css bug with position:absolute bottom:0

I cannot seem to find the workaround for this. On ios9 in mobile safari, if a webapp uses position:absolute and bottom:0 for the content area to cover the whole screen, when in landscape mode the safari navigation bar will cover the bottom of the…
ck_
  • 3,353
  • 5
  • 31
  • 33
1
2
3
95 96