80,350
社区成员
发帖
与我相关
我的任务
分享
<!--闪屏页-->
<!--<style name="SplashTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">-->
<!--<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">-->
<style name="SplashTheme" parent="AppBaseTheme">
<!--<item name="android:adjustViewBounds">true</item>-->
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
<!--<item name="colorPrimaryDark">@color/colorPrimary</item>-->
<!--<item name="colorAccent">@color/colorPrimary</item>-->
<!--<item name="android:windowFullscreen">true</item>-->
<!--<item name="android:background">@drawable/bg_splash</item>-->
<item name="android:background">@mipmap/splash_bg</item>
<!--<item name="android:windowBackground">@mipmap/splash_bg</item>-->
</style>
我现在是设置的主题,没有用布局,也用layer-list将背景和元素分离出来的方法试过了,在部分机型上图片两边还有很多空白的地方,所有我觉得是图片尺寸的问题,因为以前没做过全面屏开屏图的适配,对尺寸邀请不大清楚
[/quote]
不用布局的话 , 也就 没法 适配 , 你还是改成 布局的吧 , 放在 主题 里 没法弄 [/quote]
好吧 <!--闪屏页-->
<!--<style name="SplashTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">-->
<!--<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">-->
<style name="SplashTheme" parent="AppBaseTheme">
<!--<item name="android:adjustViewBounds">true</item>-->
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
<!--<item name="colorPrimaryDark">@color/colorPrimary</item>-->
<!--<item name="colorAccent">@color/colorPrimary</item>-->
<!--<item name="android:windowFullscreen">true</item>-->
<!--<item name="android:background">@drawable/bg_splash</item>-->
<item name="android:background">@mipmap/splash_bg</item>
<!--<item name="android:windowBackground">@mipmap/splash_bg</item>-->
</style>
<!--闪屏页-->
<!--<style name="SplashTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen">-->
<!--<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">-->
<style name="SplashTheme" parent="AppBaseTheme">
<!--<item name="android:adjustViewBounds">true</item>-->
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
<!--<item name="colorPrimaryDark">@color/colorPrimary</item>-->
<!--<item name="colorAccent">@color/colorPrimary</item>-->
<!--<item name="android:windowFullscreen">true</item>-->
<!--<item name="android:background">@drawable/bg_splash</item>-->
<item name="android:background">@mipmap/splash_bg</item>
<!--<item name="android:windowBackground">@mipmap/splash_bg</item>-->
</style>
我现在是设置的主题,没有用布局,也用layer-list将背景和元素分离出来的方法试过了,在部分机型上图片两边还有很多空白的地方,所有我觉得是图片尺寸的问题,因为以前没做过全面屏开屏图的适配,对尺寸邀请不大清楚