我的第一个问题:-) 所以最近我开始了应用程序开发,并正在阅读此处发布的教程: http://developer.android.com/training/basics/firstapp/index.html
我完成了第 1 部分 - “构建您的第一个应用程序”并严格遵循每条说明。
根据 Google 教程,结果应如下所示: http://developer.android.com/images/training/firstapp/firstapp.png
但是,当我使用模拟器(平台 4.2.2,API 级别 17)运行该应用程序时,该应用程序缺少主题,这意味着只有带有应用程序图标和白色背景的黑条。
我不知道出了什么问题,当我创建应用程序(项目)时,我确保按照教程中的说明将主题设置为“Holo Light with Dark Action Bar”。 是因为我在模拟器中运行该应用程序吗?如果没有,那么您认为我应该做什么来解决这个问题?
非常感谢:-)
最佳答案
However, when I ran the app using the emulator (Platform 4.2.2, API level 17), the app was missing the theme, meaning only the black bar with the app icon and a white background.
Theme.Holo.Light.DarkActionBar
是一个带有深色 ActionBar 的浅色主题,因此您的应用程序看起来不会有问题。如果您想要深色主题,请使用 Theme.Holo
。
关于Android 应用程序开发 - 主题问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16635697/