更改Android中的设置引用片段标题图标
我试图在没有任何运气的情况下更改首选项片段的标题图标。我尝试在清单上设置它,但没有成功,而且,我通过调用Window在stackoverflow上刷新了一些东西。但它也不会起作用。有人有办法吗更改Android中的设置引用片段标题图标,android,icons,android-preferences,preferenceactivity,Android,Icons,Android Preferences,Preferenceactivity,我试图在没有任何运气的情况下更改首选项片段的标题图标。我尝试在清单上设置它,但没有成功,而且,我通过调用Window在stackoverflow上刷新了一些东西。但它也不会起作用。有人有办法吗 <activity android:name=".Test" android:exported="true" android:icon="@drawable/ic_settings_test" android:label="Te
<activity
android:name=".Test"
android:exported="true"
android:icon="@drawable/ic_settings_test"
android:label="Test"
android:hardwareAccelerated="true"
android:excludeFromRecents="false"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
即使首选项屏幕显示且工作正常,标题上显示的图标仍然是股票设置图标:S您需要显示一些不工作的代码。我刚试过,对我来说很有效你是怎么做到的?我试着将它设置为amanifest,但它不起作用!。。。代码ADDER你确定你所有的绘图都是正确的图标吗?我已经尝试过你的清单设置,我可以用另一个drawable或mipmap图标更改我的设置活动图标。