orientation

Android - VideoView video scaling - different screen orientations and devices

How does Android handle scaling of a video being played within a VideoView? So for example if I have a video that is say 480 X 270 (width and height), aspect ratio 16:9. And, say the VideoView is added to a LinearLayout with LayoutParams of (480, 270). What will be width and height of the rendered video in portrait orientation in a devi...

How to get InterfaceOrientation from iPhone (not DeviceOrientation)?

I've created a modalviewcontroller and all the subviews are created by code. When I'm testing the app, I find a problem. Then main cause of the problem is that an app shouldn't support UpsideDown orientation, but devices may happen to be in that orientation. If I: Rotate the device to Portrait orientation, and then to UpsideDown mode ...

How do I code for the landscape orientation in iPhone?

I understand that I can change what interface orientations are supported, but if I want the landscape view to be entirely different, or somewhat different than the portrait view, how do I code for it? Thank you. ...

iphone Landscape Orientation?

My app launches in landscape mode, however everything I have set up in Interface Builder shows up sideways on the screen as if it's in portrait mode. It's definitely not in portrait mode though. I dont understand why the app launches in landscape mode, but everything comes up as if it's in portrait mode...any ideas? ...

iPad Orientation Question - One Orientation or All four - can't just get two to work.

Hey there all, I've got an iPad app that I absolutely need to have in just landscape, I know the situation on the suggestions but for this app it needs to be landscape. Now here's my problem. I have editted my .plist file to support both landscape left and landscape right in the appropriate manner and have put an autorotate snippet in...

Extjs sideways graphs

Im trying to change the orientation of a graph in Extjs so that it is horizontal instead of vertical. Is there any good way to do this? Ive looked at the documentation and I see an orientation parameter for the Ext.chart.NumericAxis, but I cant seem to get anything to work. I tried the orientation parameter, tried switching the x and y a...

Playing a video with MPMoviePlayerController in Portrait WITHOUT Private API - Will I get rejected by Apple?

It's my understanding that MPMoviePlayerController movies must play in landscape orientation because the "setOrientation:" function is private API. Well, it occurred to me that if I were to rotate the video 90 degrees in Final Cut and then re-render, the video would APPEAR to be playing in portrait orientation even though it was technica...

Nested UIScrollView like photo apps having issues when changing orientation

Hi, I have implement a nested UIScrollView based on apple developer website sample. It works fine until I turned on the orientation change. When it rotates, there will be some white color coming out during the rotation animation. And it will go away once the loading is completed. I have tried to set the backgroundcolor to black for bot...

ipad orientation problem with webview.

I'm creating ipad application. It has just 2 views. One view has few buttons. On click of a button it will open another view. This view has a webview which shows PDF file. I'm using the following code to show the PDF - (void)viewDidLoad { [super viewDidLoad]; NSString* path = [[NSBundle mainBundle] pathForResource:@"mypdf" ofType:@"pdf"...

iPad: Changing the view according to the content when orientating (landscape / portrait)

I understand that Apple will do a kind of autoresizing thing when iPad / iPhone change orientation and you can set views' autoresizing masks. But what if the views' resizing is not that simple? for example, I have a TableView and each cell has different number of letters. Assuming in Landscape mode, the TableView has perfectly built s...

How do I initialize a view to an interface orientation?

The problem is that I am launching in-app email and triggering keyboards (via UITextFields) and they are coming up portrait on my landscape app. I am able to rotate it portrait, then rotate it landscape again, observing the black rotation corners animation that occurs when an app rotates from portrait to landscape. Since I've locked ou...

How to draw in UIViewController in landscape orientation on the iPhone?

Hey guys, there are already some questions on this topic. Unfortunately none of them helped me in anyway. So here is the thing. I am working on an app atm and it has one tabcontroller with two tabs, which contain multiple navigationcontroller on top of each other. Now in one tab at the top level navigation controller, I want to draw some...

PEAR Image_Graph XAxis coordinate orientation

I'm making a graph using PEAR Image_Graph and the bottom coordinates labels are dates. Instead of the labels (dates) displaying horizontally, I'd like them to display vertically - or maybe at a slight angle, so they aren't all on top of each other. However, I'm not sure if this is possible and I can't seem to find anything in the docum...

How can I have a portrait-oriented menu in my lanscape-oriented view in Android?

How can I have a portrait-oriented menu in my lanscape-oriented view in Android?Hi, I'm building an application with some items that must be landscape-oriented. Everything else (menu, view for editing the item, list of item...) should change orientation according to the orientation of the device. To do that I set android:screenOrientati...

Portrait Orientation is losing touch input.

I'm making a universal apps with auto rotation, and I'm only using landscape left and right. When I rotate the iPhone to the portrait down position, I can see what looks like a window underneath the app rotating and I no longer get touch events. In all the shouldAutoRotate functions I'm making sure only return true for landscape, and t...

Regarding iPhone orientation and firmware: Always force orientation.

Lately, I have received a text from the QA folks saying that the developed app's orientation is incorrect on iPhone 3, while it can display correctly on iOS 4. They say on iOS 3, the app's orientation is on portrait view, which makes the app leaving gray space below. However, they claimed that on iOS 4, the orientation is correct. I te...

iPad Interface Orientation

I've been looking for a great pattern to deal with the orientations on the iPad without any luck. I know that there are already a lot of topics about this on stackoverflow but no one is really great so don't waste your time adding this topic as a duplicate. As any iPad application, you have to deal with (at least) 2 orientations (landsc...

HTML 5 video in UIWebview Orientation landscape

Hi. I have an iPhone application where every view is in portrait. I have a UIWebview with some HTML in it. Amoung that there is a html5 tagged video. When I play that video, it plays in portrait only. In order to make it work in landscape I have to return YES for shouldAutorotateToInterfaceOrientation in the viewcontroller, but I don't ...

iPhone UINavigationBar: Why does it resize in landscape orientation?

Hi, I searched all the web but did not find a clue: I've got a UIView in a UINavigationController in a UITabBarController—not that unusual, I guess. First of all an image: http://img824.imageshack.us/img824/426/navbari.png The app starts in portrait mode (1) When I now rotate the device to landscape mode the app looks like in (2) A...

iPad Orientations.

Ok here is the structure of the app: in delegate, i add rootViewController as subview to the window: RootViewController *rootView = [[RootViewController alloc] init]; [window addSubview:rootView.view]; In rootViewController there is an inteface I crate programmatically (a brunch of buttons like the springboard), and is currently wor...