screen-orientation

FirebaseUI login orientation

半城伤御伤魂 提交于 2019-12-11 03:24:49
问题 I'm using FirebaseUI for login. I can't make the login screen remain in portrait mode no matter what I try. What am I doing wrong here? I suspect it's something in the Manifest. Interestingly, the Splash Screen remains in portrait, and goes to landscape mode straight after that. I can't find the mistake, please help. <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.r3dm4n.abc"> <uses-permission android:name="android

How to Detect if Launcher Home Screen Supports Rotation

℡╲_俬逩灬. 提交于 2019-12-11 02:09:53
问题 I need to check if the device launcher home screen support orientation, is that possible? if so please help me out. for instance, Samsung Galaxy Note 2 does not support launcher orientation while Galaxy Mega does. 回答1: You can handle yourself the screen rotations by modifying the Manifest file, just add android:configChanges="orientation" for the activities you want. It means that the system will not handle by itself the orientation changes anymore. Then in order to implement the actions to

How to handle screen rotation/orientation in Xamarin Forms?

佐手、 提交于 2019-12-11 01:51:39
问题 Is there a (half) generic way to handle rotation/orientation in Xamarin Forms for different views and platforms (Android, iOS, WinPhone)? The UI does rotate, and that is nice enough, though it wreaks havoc to my layout (absolute layout right now). I suppose with a Stacklayout I could make it a litte more flexible, but would then hit a road block somewhere else when the layout is more intricate. Can I somehow display different views for portrait and landscape, with the same ViewModel? (I am

onCreate method keeps getting called when the orientation of device changes

假如想象 提交于 2019-12-11 01:06:31
问题 I have an AsyncTask which gets called onCreate() in my Main Activity . In the same Activity if the orientation changes the AsyncTask gets called again. How do I prevent this from happening or how do I restructure my program to avoid this happening? public class Main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.pages); StartProcess sProcess = new StartProcess(); sProcess.execute(this); } } 回答1: You

Is disabling landscape mode unforgivable?

帅比萌擦擦* 提交于 2019-12-10 20:01:52
问题 Our application could support landscape mode without any problem, but it is such a pain that we are thinking about forcing portrait mode . Question: Is it BAD? The main problem is that changing orientation generates random crashes on many screens. Avoiding those crashes would potentially allow us to spend more time on the core aspects of the app. Will the same crashes happen when users switch apps anyway? Also, are there landscape-oriented devices where our app will become useless? 回答1: There

How to allow both landscape/portrait for tablets only

喜欢而已 提交于 2019-12-10 17:04:23
问题 I would like to enable screen orientation changes for my application in tablets only, while restricting the layout in phones to portrait only. How do you do this? 回答1: In any case, please read this. It should give you an idea as to how to go about it. The <supports-screens> tag allows you to declare what sort of screens you want your app to support. However, if you read this, it'll give you an idea about screen orientation. Hope this helps. 来源: https://stackoverflow.com/questions/9324561/how

On change screen orientation, new activity created

时光毁灭记忆、已成空白 提交于 2019-12-10 15:59:45
问题 I'm relatively new to Android but have made quite a few apps over the past year so forgive me. I know that when you are running an app on a device and change the screen orientation by turning the device the activity that is showing is completely recreated. I go to the youtube app (I am using Nexus 7 w/ Android 4.2.2) and play some video and then flip the screen to change orientation. The video keeps playing and everything is re-sized accordingly... How is this possible if the activity is

Set activity screen orientation using styles

和自甴很熟 提交于 2019-12-10 14:22:21
问题 I'm trying to set activity screen orientation using a styles: Here is the styles.xml: ... <style name="Some.Activity" parent="android:Theme"> <item name="android:screenOrientation">portrait</item> </style> ... and here is activity declaration in AndroidManifest.xml: <activity android:name="SomeActivity" android:theme="@style/Some.Activity"/> and it doesn't work. I know that I can just set <activity android:name="SomeActivity" android:theme="@style/Some.Activity" android:screenOrientation="...

How to check Device Orientation Change From Portrait To Landscape and Vice-Versa in iPad [duplicate]

南笙酒味 提交于 2019-12-10 14:12:18
问题 This question already has answers here : How to detect orientation change? (24 answers) Closed 3 years ago . I have one split view controller and i am presenting a popover inside it. Now when the device orientation is changing from landscape to portrait i have to run a piece of code & if it is changing from portrait to landscape i have to run another piece of code. How to achieve this in Swift. 回答1: From iOS 8.0 You can detect the orientation change using below method. In objective-c - (void

Rotating the actual videobuffer in Videoview

风格不统一 提交于 2019-12-10 13:06:00
问题 I am currently developing an App specifically for android's GoogleTV devices where using or forcing the orientation of the app to anything other than landscape is not enabled, and will not be enabled in the future from what i have figured, in actuality the app simply crashes upon trying to run setRequestedOrientation() ; Videoviews inherit the positional properties from normal views, Stuff like SetX , SetY and namely SetRotation . You can set the videoview's rotation to 90 degrees, but the