landscape

AutoCompleteTextView hints in landscape mode

和自甴很熟 提交于 2019-12-04 08:36:36
I'm using AutoCompleteTextView in my app with a custom adapter and it works perfect in portrait mode. In horizontal mode however the software keyboard takes most of the screen and text view uses overlay buttons instead of Views provided by the adapter. I couldn't find a clear documentation about how this works behind the scenes. It seems that in landscape mode AutoCompleteTextView bypasses adapter's getView() method, does some dirty work using getItem() and renders items itself using raw strings. To make things worse it seems that in AutoCompleteTextView is accualy presenting TWO lists of

How to merge two landscape pdf pages using pyPdf

落花浮王杯 提交于 2019-12-04 08:22:55
I'm having trouble merging two PDF files with pyPdf. When I run the following code the the watermark (page1) looks fine, but the page2 has been rotated 90 degrees clockwise. Any ideas what's going on? from pyPdf import PdfFileWriter, PdfFileReader # PDF1: A4 Landscape page created in photoshop using PdfCreator, input1 = PdfFileReader(file("base.pdf", "rb")) page1 = input1.getPage(0) # PDF2: A4 Landscape page, text only, created using Pisa (www.xhtml2pdf.com) input2 = PdfFileReader(file("text.pdf", "rb")) page2 = input2.getPage(0) # Merge page1.mergePage(page2) # Output output = PdfFileWriter()

Rotate totally Landscape view when movie play in VLCPlayer with swift 3

给你一囗甜甜゛ 提交于 2019-12-04 06:32:21
问题 I would like to rotate my view controller when movie play. My question might be duplicate but I tried many ways when I find in stack overflow. But all codes do not work. May be I put the codes in wrong way. override var shouldAutorotate: Bool { return false } override var supportedInterfaceOrientations: UIInterfaceOrientationMask { //return[.portrait,.landscapeRight] return .landscapeLeft } override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation { //return

Placeholder attribute on text input with iOS 6 from landscape to portrait

依然范特西╮ 提交于 2019-12-04 05:46:17
I have a problem after updating to iOS 6 that is driving me nuts. It looks like any time I have the attribute "placeholder" on an input field, while rotating from Portrait to Landscape and back to Portrait again the page shifts some pixels on the left side causing a horizontal bar. I concluded after long research that it has to be something related to the meta viewport because every time I use the content="width=device-width" all works fine. P.S Yes I really need to have a percent width on the input so as to have liquid design:) Here is the example to recreate the issue. Thanks... <html> <head

Landscape splash screen for Android in PhoneGap Build

断了今生、忘了曾经 提交于 2019-12-04 03:00:04
What should I enter to config.xml or what should I do in general, to have PhoneGap Build application's splash screen displayed correctly on Android device in landscape mode? PhoneGap Build (used to compile) docs / blog have nothing on this. Only Portrait is covered for Android. Since first (docs) says that using height and width is cross-platform supported, I tried to use it: <gap:splash src="res/splash-200x320-android.png" gap:platform="android" gap:density="ldpi" width="200" height="320" /> <gap:splash src="res/splash-320x480-android-bada-ios.png" gap:platform="android" gap:density="mdpi"

Rotate one UIViewController in UITabBar application

徘徊边缘 提交于 2019-12-03 23:09:58
问题 I have uitabbar application and I Want to rotate just one ViewController with chart in landscape mode. It's possible to do that? 回答1: There is no easy way to have only one view in landscape mode, while the others are in landscape, nor an easy way to programmatically switch to landscape mode. One possible approach would be using a CGAffineTransform to transform your view in your viewWillAppear (i.e., right before the view is shown): - (void)viewWillAppear:(BOOL)animated; { //-- Adjust the

iphone: Forcefully change orientation from portrait to landscape on navigation

醉酒当歌 提交于 2019-12-03 21:35:49
问题 Is there any way that we can Forcefully change app orientation from portrait to landscape while navigating ? I have a requirement that while pushing controller from A to B. B should be in landscape but my A controller is in portrait. 回答1: In your ViewController-B add this lines of code in viewDidLoad: [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight]; float angle = M_PI/2; //rotate 180°, or 1 π radians self.view.layer.transform =

Video view is not full screen in landscape mode

六眼飞鱼酱① 提交于 2019-12-03 20:24:42
I am using a video view designed with xml. This video is full screen in Portrait mode but when it turns to the landscape mode, it is left aligned and both width and height are wrapped instead of full screen. I referred these, but still no solution for this. Fullscreen VideoView isn't Centered Android-Video View in Fullscreen Any one knows the answer for this? Update: Here is my xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <VideoView android:id="@+id

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

不羁的心 提交于 2019-12-03 14:45:01
问题 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 Changes android:configChanges="keyboardHidden|orientation" I override my activity to catch Configuration Changes @Override public void onConfigurationChanged(Configuration newConfig) { and I know how to catch orientation Display display = ((WindowManager)

Replicate camera app rotation to landscape IOS 6 iPhone

眉间皱痕 提交于 2019-12-03 13:49:08
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 bottom and rotate on their centres. I am using Storyboards and Autolayout is enabled. Any help is