AndroidManifest.xml 设置横、竖屏显示
android:screenOrientation="portrait" 应用程序竖屏显示
android:screenOrientation="landscape" 应用程序横屏显示
-------------------安卓状态栏全透明-------------------
AndroidManifest.xml文件中加载
<application
android:theme="@style/AppTheme"
</application>
styles.xml文件中定义
<style name="AppTheme" parent="AppBaseTheme" >
<item name="android:windowTranslucentStatus">true</item>
</style>
-------------------安卓状态栏全透明-------------------
-------------------安卓状态栏半透明-------------------
AndroidManifest.xml文件中加载
<application
android:theme="@style/AppTheme"
</application>
styles.xml文件中定义
<style name="AppTheme" parent="AppBaseTheme" >
<item name="android:statusBarColor">@android:color/transparent</item><!--透明色(可定义)-->
<item name="android:windowTranslucentStatus">true</item>
</style>
-------------------安卓状态栏半透明-------------------
安卓状态栏全透明或半透明显示设置好了后,一般在启动画面开启 无状态栏并全屏显示
安卓无状态栏并全屏显示
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
在加载LOGO Activity处增加
示例:
<activity
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"<!--安卓无状态栏并全屏显示-->
android:label="@string/app_name"<!--应用程序名称-->
android:name="com.etfsoft.homektv.ActivityLogo_"<!--加载启动程序-->
android:screenOrientation="portrait"><!--应用程序竖屏显示-->
</activity>