视觉上的优化
为启动的activity定义一个Theme
<style name="AppTheme.Launcher"> <item name="android:windowBackground">@color/colorAccent</item> </style>
<activity android:name=".MainActivity" android:theme="@style/AppTheme.Launcher"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity
然后在MainActivity的onCreate的 super .onCreate(savedInstanceState); 之前 设置
setTheme(R.style.AppTheme);