安卓横屏布局设置:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:screenOrientation="landscape"
android:background="@drawable/companybusicard_bg" >
安卓TextView中设置文字在该域中居中:
android:gravity="center"
在Manifest.xml文件中对需要全屏的Activity页面进行设置:
<activity
android:name=".CompanyBusicardFullscreenActivity"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen" >
</activity>