如何在Android的应用程序信息页面中创建设置按钮? [英] How can I create a settings button in Android's app info page?
本文介绍了如何在Android的应用程序信息页面中创建设置按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Nova Launcher使用齿轮在右上方打开其设置。怎么做?我如何将我的应用程序的设置活动放置在那里?
Nova Launcher opens their settings with the cogwheel in the upper right. How is this done? How would I place my app's settings activity there?
中的新设置按钮
推荐答案
在Android 7.0及更高版本上,您可以使用此< intent-filter>
关于您的设置活动:
On Android 7.0 and higher, you can use this <intent-filter>
on your settings activity:
<intent-filter>
<action android:name="android.intent.action.APPLICATION_PREFERENCES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
设置应用应将其选中,并通过该齿轮图标向用户提供。
The Settings app should pick that up and make it available to the user via that gear icon.
这篇关于如何在Android的应用程序信息页面中创建设置按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文