Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/187.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 当应用程序最小化时,如何更改操作栏图标_Android_Android Layout_Android Actionbar - Fatal编程技术网

Android 当应用程序最小化时,如何更改操作栏图标

Android 当应用程序最小化时,如何更改操作栏图标,android,android-layout,android-actionbar,Android,Android Layout,Android Actionbar,我搜索了类似的问题,但找不到与此问题相关的主题。我想在应用程序最小化时显示不同的图标 尝试向应用程序添加android:logo属性,但未更改图标 <application android:allowBackup="true" android:logo="@drawable/action_logo" android:icon="@drawable/ic_launcher" android:label="@string/app

我搜索了类似的问题,但找不到与此问题相关的主题。我想在应用程序最小化时显示不同的图标

尝试向应用程序添加
android:logo
属性,但未更改图标

 <application
        android:allowBackup="true"
        android:logo="@drawable/action_logo"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">

首先将android:icon=“@drawable/ic_launcher”更改为所需,然后单击按钮重建(android Studion上方的绿色按钮)并创建应用程序。

首先将android:icon=“@drawable/ic_launcher”更改为所需,然后单击按钮重建(android Studion上方的绿色按钮)和创建应用程序。

ic_launcher
是应用程序图标,我无意更改应用程序图标,我想将操作栏中的图标从显示
ic_launcher
更改为显示
action_徽标
ic_launcher
是应用程序图标,我无意更改应用程序图标,我想将操作栏中的图标从显示
ic\u启动器
更改为显示
action\u徽标