简体   繁体   中英

Titlebar shrinks when I specify a minSdkVersion in AndroidManifest.xml

I am trying to specify the minSDKVersion:

<uses-sdk android:minSdkVersion="5" />

Whenever I add this line, my titlebar shrinks a little bit. Not sure why? When this line is not in my manifest, everything is fine.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      android:versionCode="1"
      android:versionName="1.0" package="org.stocktwits.activity">
       <uses-sdk android:minSdkVersion="5" />

    <application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/Theme.DarkGradient" android:debuggable="false">
        <activity android:name=".Main"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    <activity android:name="AddStocksActivity">
    </activity>
    <activity android:name="DetailsActivity">
    </activity>
    <activity android:name="ChartsActivity">
    </activity>
    <activity android:name="ARActivity">
    </activity>
</application>

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
</manifest> 

Update: I noticed when I set the minimum level to 3 the titlebar size does not shrink. Anything above will shrink. Why is this?

如果API级别> 3supports_screens属性全部都设置为true,则与缩放有关,请参见此处http://developer.android.com/guide/practices/screens_support.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM