状态栏中的Android搜索栏 [英] Android Seek Bar in Status Bar
问题描述
我正在开发一个Android应用程序,我想在状态栏中添加音量控件.我可以在状态栏中添加搜索栏吗?
I'm developing an android application where i want to add the volume control in Status Bar. Can i add a seek bar inside the Status Bar.
我与NotificationManager
一起工作,发现在通知栏中添加动画很困难.
I have worked with NotificationManager
and i've found that adding animation is difficult in Notification bar.
但是任何人都可以建议我是否可以在状态栏(通知栏)中添加搜索栏.
But can anyone please suggest if i can add a seek bar in my Status Bar(Notification bar).
推荐答案
简短答案:否.
长答案:您不能将侦听器添加到NotificationBar
上的小部件中.您不能尝试添加Intent
来调用具有对话框主题的Activity
并在其中具有搜索栏.
Long answer: You can't add listeners to the widgets placed on the NotificationBar
. You can't try adding an Intent
to call an Activity
with dialog theme and have the seek bar there.
这篇关于状态栏中的Android搜索栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!