---
title: "android 固定屏幕显示方向"
author: "jguangyou"
date: "2012-06-07T11:27:26Z"
tags: []
categories: ["移动开发"]
slug: "android"
draft: false
lastmod: "2012-06-07T11:27:26Z"
id: 1554263
url: "https://deep-fish.iteye.com/blog/1554263"
---

如果需要设定应用程序的显示方向，可以增加android:screenOrientation参数
1.landscape  横向显示
2.portrait   纵向显示
3.unspecified  默认值
4.user   用户当前方向
5.sensor  根据重力感应显示
6.nosensor  不接受重力感应