landscape

Best practice to support portrait and landscape views in a UINavigationController

余生颓废 提交于 2019-12-12 11:01:12
问题 I searched high and low and I'm not sure what I came out with is the best way of dealing with this (though it seems the only one). According to Want to use muliple nibs for different iphone interface orientations I implemented the relevant methods, and everything seems to work fine. Unfortunately I have to deal with a UINavigationController, and each page has to support both portrait and landscape modes, and reproduce the same functionalities in both modes. That means that If a user at some

How to make VideoView full screen

北城余情 提交于 2019-12-12 09:55:13
问题 I want to play a video in my Activity using a VideoView ,and make it fullscreen and landscape mode (with hiding virtual button and status bar)when I click a Button . But it can not hide the virtual button and it has a white line in bottom. This my activity code: public class VideoActivity extends Activity { private VideoView mVideoView; private String mUrl; private Button mFullScreen; private static String TAG = VideoActivity.class.getName(); @Override protected void onCreate(Bundle

iPhone correct landscape window coordinates

百般思念 提交于 2019-12-12 07:55:00
问题 I am trying to get the window coordinates of a table view using the following code: [self.tableView.superview convertRect:self.tableView.frame toView:nil] It reports the correct coordinates while in portrait mode, but when I rotate to landscape it no longer reports correct coordinates. First off, it flips the x, y coordinates and the width and height. That's not really the problem though. The real problem is that the coordinates are incorrect. In portrait the window coordinates for the table

Can we make our webpage open defaultly in landscape mode for mobile/tablets using media query/js/jquery?

此生再无相见时 提交于 2019-12-12 07:07:04
问题 Is it possible to make my web page open default in landscape mode in a mobile or tablet even if the orientation of screen is off using css3 media query or jquery ?? 回答1: You COULD do this. Wether it is a good idea or not I'll let you decide (hint: it isn't). Check for portrait orientation with CSS and rotate the body if necessary: @media screen and (orientation:portrait) { body { transform: rotate(-90deg); transform-origin: 50% 50%; } rotating the body in this way will not cause it's width

“error 402: Current Android sdk version doesn't support initialWindow as xml tag” despite SDK 23

浪子不回头ぞ 提交于 2019-12-12 05:29:38
问题 I have an old Adobe AIR app that is working just fine on Android, except that it comes out in portrait mode. Without changing the source, just the application descriptor, I would like to fix this. Currently I have: <application xmlns="http://ns.adobe.com/air/application/2.6"> ... <android> <manifestAdditions> <![CDATA[ <manifest android:installLocation="preferExternal"> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <supports-screens android:normalScreens="true"/>

How to start a new activity when screen orientation changes? Android

为君一笑 提交于 2019-12-12 03:22:02
问题 I am writing an application which in portrait view has a gallery at the top and when you click a picture it will inflate and fill the entire screen. This works however in landscape mode the gallery covers up most of the picture and it in general looks crappy. I made a GridView for landscape mode. The problem I am having now is to change it from the gallery activity to the Gridview activity when the orientation changes. Any ideas? 回答1: Add this to your Activity: @Override public void

Universal app and landscape orientation for iPad

爱⌒轻易说出口 提交于 2019-12-12 01:06:37
问题 I want to design a universal app that I'd want to support just portrait orientation. It's weird because Xcode allows you to select portrait orientation only in the target's Deployment Info settings (and in Info.plist), but reading the iOS Human Interface Guidelines, in the section regarding the launch images, I've found this: You must provide at least one launch image. Typically, an iPhone app includes at least one launch image in portrait orientation; an iPad app includes at least one launch

Wired behaviour of UIImagePickerController while capturing photo

人盡茶涼 提交于 2019-12-11 18:59:06
问题 My entire app is in portrait orientation, only camera view should open in landscape orientation. I've taking reference of Apple's sample code of UIImagePickerController , https://developer.apple.com/library/ios/samplecode/PhotoPicker/PhotoPicker.zip In my requirement, I've to force UIImagePickerController to start camera in landscape mode, and need to capture the photos. I'm aware of this, The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is

Touch area changing on custom UIButton with image and title on landscape mode

我怕爱的太早我们不能终老 提交于 2019-12-11 18:16:55
问题 I'm trying to build a button that looks like the icons on the iphone , with an image and a title bellow.I'm working in landscape mode. I have a custom button on the IB with image and title and inside the code I use the methods : [aButton setTitleEdgeInsets:UIEdgeInsetsMake(60.0, -50.0, 0.0, 0.0)]; [aButton setImageEdgeInsets:UIEdgeInsetsMake(-10.0, 29.0, 0.0, 0.0)]; my problem is that the area that react to the touch events is very small and is on the top left of the button , another problem

LandScape/Portrait size differ iOS

China☆狼群 提交于 2019-12-11 18:11:51
问题 I have five UIButton and I need to set the frame of the UIButton in such a way that it should be for the Landscape and portrait different size. but the from the Below code viewDidLoad its loading fine but problem is that After loading the stack When I move to the Landscape to portrait or the portrait to Landscape it should be change according to the viewdidload size which i have set ..but this is not happening...its been overlapping as previous Button is already created....what changes do i