如何自定义Android应用程序的顶部状态栏?
具体来说,我想更改文本和背景颜色。是否也可以更改“动画进度轮”的颜色?我可以使用主题来做到这一点吗?谁能给我指一个我可以看的示例主题?
Specifically I want to change the text and background colors. Is it possible to change the colors of the 'animated progress wheel' too? Can I use a theme to do this? Can anyone point me to an example theme I can look at?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您可以为应用程序的标题栏使用自定义视图。请参阅此问题的答案:带图像的自定义标题
I believe you can use a custom view for the app's title bar. See the answers to this question: Custom title with image
如果“顶部状态栏”指的是电池表、信号表和通知的位置,则无法从应用程序更改它。您可以设置一个主题来删除它(例如,
Theme.NoTitleBar.Fullscreen
)。这通常用于真正需要全屏的应用程序,例如视频播放器和一些游戏。If by "top status bar" you mean where the battery meter and signal meter and notifications go, you cannot change it from an app. You can set a theme to remove it (e.g.,
Theme.NoTitleBar.Fullscreen
). This is usually used for applications that truly need the full screen, such as video players and some games.