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
0
votes
1 answer

Android: Is that possible to mix portrait and landscape in viewpager?

I have a question about viewpager. Is that possible to mix portrait and landscape orientation in one viewpager? To be specific, some of the pages are in portrait orientation while other pages are in landscape orientation. Thanks.
0
votes
1 answer

Android calling onCreate() after finish() when in landscape

I have an activity that starts the Vibrator system service in its onCreate method, then when the user pushes a button it cancels the vibrator, then calls finish() to close the activity. This activity is brought up via the AlarmManager, so when it…
Rabbit
  • 115
  • 2
  • 10
0
votes
1 answer

Show Intent.ACTION_PICK in landscape

I am working on an app which let users choose photo from their gallery. The problem is I need to show the gallery in landscape only. Is it possible to do it? I use this code: Intent galleryIntent = new…
vtloc
  • 181
  • 1
  • 1
  • 7
0
votes
1 answer

UIImageView rotating but not properly repositioning

I am building an app that displays an image in landscape and portrait modes. Rotating works perfectly. The image is also perfectly positioned in landscape mode. However it keeps its landscape coordinates in portrait, which misplace it as a result.…
Armand
  • 435
  • 1
  • 11
  • 23
0
votes
2 answers

Orientation mode as landscape for only one screen - iPhone

Im developing an application using Titanium which is compatible for iPhone. I'm navigating between 4 views. 1st View (Portrait) ---> 2nd View (Landscape) --> 3rd View (Portrait) ---> 4th View (Portrait) SO I have 3 Portrait views in my application…
Gayan
  • 1,425
  • 4
  • 21
  • 41
0
votes
2 answers

Change one viewcontroller to landscape only in ios6

I've found what appears to be the answer to my question here: iOS 6: How do I restrict some views to portrait and allow others to rotate? BUT i don't understand the answer. I'm confused as to where i'm supposed to be putting the code for the…
LaythT
  • 23
  • 4
0
votes
1 answer

recreate activity after rotate device and change orientation

I am using AndEngine in application which is in landscape orientation. After executing my app I am turning off the device and again turning it on. After rotate the device to portrait mode I am unlocking the screen. Then my application is finished. I…
0
votes
1 answer

Do I need to supply separate navigation bar png file for iOS landscape mode and how do I get it to show?

I am using Xcode storyboard to demo an app design (non-functional, I'm a designer and need to show for design purposes). So far I have created the necessary png's for navigation bar on top and the tab bar in portrait mode. My navigation bar is…
PressRay
  • 151
  • 1
  • 1
  • 6
0
votes
4 answers

Show UILabel in landscape mode in AppDelegate

I am showing a custom UILabel in my appdelegate class when a push notification comes. It is working fine in Portrait mode but when i rotate my device to landscape mode, label is still showing in Portrait mode. How can i fix it. I have implement…
shivam
  • 1,148
  • 1
  • 12
  • 28
0
votes
2 answers

Startactivity for result, returns in landscape mode

I'm starting the camera via: Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(camera, PICTURE_RESULT); It works without any errors. The only problem is when im returning, the layout is in Landscape mode eventhough…
Sebastian
  • 2,698
  • 2
  • 17
  • 26
0
votes
1 answer

Force views to only support landscape mode

I want to only support landscape mode in my application. I have set the following: Orientation for all view controllers in the application are set to Landscape. Some of the view controllers are in a storyboard while couple are not The…
vishwa
  • 83
  • 6
0
votes
1 answer

Why Android normal layout folder always opens the screen in landscape mode

I have divided my layout resources in Android project to many folders such asL layout, layout-large, layout-normal-port-xhdpi-800x480, and so on. The problem is when I click on xml file inside the (layout) folder which is the default folder it…
Amt87
  • 5,493
  • 4
  • 32
  • 52
0
votes
1 answer

Both landscape.css and portrait.css are being applied

I have the following declared in my HEAD tag:
user974896
  • 1,795
  • 4
  • 28
  • 48
0
votes
1 answer

Toolbar height resets to 44px in landscape after presenting view controller

I'm using the method posted here to adjust the size of my toolbar when rotating the device. This works well and it shows the appropriate size including icon size etc. However, when I present a view controller with [self…
Stefan Henze
  • 2,711
  • 23
  • 22
0
votes
1 answer

Orientation Seems to Conflict with Dimensions

if(UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { NSLog(@"Device is in portrait"); } else if(UIInterfaceOrientationIsLandscape(self.interfaceOrientation)){ NSLog(@"Device is in landscape"); } NSLog(@"View bounds are…
Victor Engel
  • 2,037
  • 2
  • 25
  • 46