美文网首页
android app首页logo图片拉伸

android app首页logo图片拉伸

作者: 为什么啊 | 来源:发表于2019-10-09 17:02 被阅读0次

首页manifest里面

<activity

    android:name=".SplashActivity"

    android:launchMode="singleTop"

    android:screenOrientation="portrait"

    android:theme="@style/SplashStyle"

    android:windowSoftInputMode="stateAlwaysHidden">

<intent-filter>

        <action android:name="android.intent.action.MAIN" />

        <category android:name="android.intent.category.LAUNCHER" />

<intent-filter>

</activity>

style 文件下的内容是

<style name="SplashStyle" parent="Theme.AppCompat.Light.NoActionBar">

    <item name="android:windowDisablePreview">true</item>

    <item name="android:windowFullscreen">true</item>

    <item name="android:windowBackground">@drawable/splash_bg</item>

    <item name="windowNoTitle">true</item>

    <item name="android:backgroundDimEnabled">false</item>

</style>

drawable  用的是自己创建的资源文件 splash_bg内容如下  splash 是图片

<?xml version="1.0" encoding="utf-8"?>

<bitmap xmlns:android="http://schemas.android.com/apk/res/android"

    android:src="@drawable/splash"

    android:tileMode="disabled"></bitmap>

相关文章

网友评论

      本文标题:android app首页logo图片拉伸

      本文链接:https://www.haomeiwen.com/subject/fbshkttx.html