AndroidManifest基本定义

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>


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值