gpt4 book ai didi

android - 为什么这个屏幕,而应用程序每次都打开

转载 作者:行者123 更新时间:2023-11-29 16:01:10 25 4
gpt4 key购买 nike

在这里,我每次都会看到这个屏幕,就像飞溅几秒钟,然后打开主页 Activity 。我不想在我的应用程序中看到这个屏幕。如何修复它。

enter image description here

这是我的 list 文件

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.example.asdf.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

为了您的信息,我正在使用支持库进行开发。

我将应用程序样式更改为 "@android:style/Theme.Translucent.NoTitleBar" 然后此屏幕未显示,但它对同一应用程序的其他 UI 组件有影响,例如..微调器、 TextView 等

最佳答案

在你的 style.xml 中添加这一行

  <style name="AppTheme" parent="android:style/Theme.Holo">
<item name="android:windowDisablePreview">true</item>

试试这个..好吧,以前的应该有用。它对我有用

关于android - 为什么这个屏幕,而应用程序每次都打开,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24547097/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com