zoukankan      html  css  js  c++  java
  • launcher 配置

    <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:roundIcon="@mipmap/ic_launcher_round"
            android:supportsRtl="true"
            android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen">
            <activity
                android:launchMode="singleTask"
                android:name=".MainActivity">
                <intent-filter android:priority="2">
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                    <category android:name="android.intent.category.HOME" />
                    <category android:name="android.intent.category.DEFAULT" />
                </intent-filter>
            </activity>
        </application>
    <activity
                android:name="com.android.launcher3.Launcher"
                android:launchMode="singleTask"
                android:clearTaskOnLaunch="true"
                android:stateNotNeeded="true"
                android:theme="@style/Theme"
                android:windowSoftInputMode="adjustPan"
                android:screenOrientation="nosensor">
                <intent-filter android:priority="2">
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.HOME" />
                    <category android:name="android.intent.category.DEFAULT" />
                    <category android:name="android.intent.category.MONKEY"/>
                </intent-filter>
    </activity>

    注意下 

    <category android:name="android.intent.category.HOME" />
    <category android:name="android.intent.category.DEFAULT" />
    android:clearTaskOnLaunch="true"
    android:stateNotNeeded="true"
    <intent-filter android:priority="2">
    起着不同的作用
  • 相关阅读:
    HDU_1042——阶乘,万进制
    HDU_2136——最大质因数,素数筛选法
    POJ_1321——棋盘问题,回溯+剪枝
    POJ_3009——冰球,IDS迭代加深搜索
    STL_vector
    比较长的文章进行分页显示
    winform中comboBox控件加默认选项的问题
    生成日期随机码
    删除dataGridview中选中的一行或多行
    SQl 事务增加数据
  • 原文地址:https://www.cnblogs.com/androidxufeng/p/10476405.html
Copyright © 2011-2022 走看看