在AndroidManifest.xml配置文件中对Activity节点修改android:screenOrientation属性 默认是landscape(横屏),要想修改为纵向,则需设置为portrait