Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我创建了一个非常简单的通知。我正在尝试通过插入一个允许我激活和停用在启动时执行的服务的切换按钮来自定义通知,但没有成功。我还想在通知中显示一个图标,该图标会根据服务的状态(启动或停止)而变化。有人有代码示例吗?