SplashScreen上的白色状态栏

时间:2016-06-17 18:41:27

标签: android xml

我已经对此进行了研究,但在我的Splashscreen中我的状态栏为白色时无法回答。它在我的MainActivity中运行得很好,根据我的Manifest,主题也是" @style / AppTheme.NoActionBar"。我的splashscreen和mainactivity都有相同的主题。

我希望状态栏为colorPrimaryDark

styles.xml     

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <!-- Customize your theme here. -->
    <item name="colorPrimary">@color/colorPrimary</item>
    <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
    <item name="colorAccent">@color/colorAccent</item>
</style>

<style name="AppTheme.NoActionBar">
    <item name="windowActionBar">false</item>
    <item name="windowNoTitle">true</item>
</style>

<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />

<style name="RainImage">
    <item name="android:src">@drawable/no_rain</item>
</style>

<style name="BirdImage">
    <item name="android:src">@drawable/one_bird</item>
</style>

的AndroidManifest.xml

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

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

    <activity
        android:name=".SplashScreen"
        android:theme="@style/AppTheme.NoActionBar">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

1 个答案:

答案 0 :(得分:0)

刚刚通过styles.xml(v21)文件中的以下代码

select continent,
  listagg(country, ' ') within group (order by country_num) as countries,
  listagg(cities, ' ') within group (order by country_num) as cities
from (
  select continent,
    dense_rank() over (partition by continent order by country) as country_num,
    dense_rank() over (partition by continent order by country) ||'.'|| country as country,
    dense_rank() over (partition by continent order by country) ||'.'||
      listagg(city, ',') within group (order by city) as cities
  from t
  group by continent, country
)
group by continent
order by continent;

CONTIN COUNTRIES                            CITIES                                                  
------ ------------------------------------ --------------------------------------------------------
Asia   1.Bangladesh 2.India 3.Pakistan      1.Dhaka 2.Bengalaru,Delhi,Hyderabad 3.Karachi,Peshawar  
Europe 1.France 2.Germany 3.UK              1.Paris 2.Berlin,Munich 3.Leeds,London