SetRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE) Accelerometer Include the following in your AndroidManifest.xml file to specify that you want to use sensor-based landscape orientation:Īlternatively, in your code, you can use the following constant: Android API level 9 and later supports the attribute for sensor-based orientation. With sensor-based orientation, the system chooses landscape orientation or reverse landscape orientation based on the physical orientation of the tablet. When creating an app for the Fire tablets that runs only in landscape mode, you should specify sensor-based landscape orientation in your AndroidManifest.xml. The following table shows orientation codes for the Fire tablets. To help ensure a good user experience, your app needs to account for changes in device orientation. Install and Use the Amazon Web App Testerįire tablets allow for rotation of the display. Automatically Scale an Element to Fill the Screen.Detect the Device Display Characteristics.Take Screenshots on Fire Devices and Android Tablets.Fire Tablet Specifications: Fire HDX Models.Fire Tablet Specifications: Fire Models.Fire Tablet Specifications: Fire HD Models.Set Up Your Development Environment for Fire Tablets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |