[英]How to set android application custom theme with custom action bar background?
[英]Set android window title bar icon from custom application theme
是否可以通过我自己的自定义主题设置窗口标题栏标题和图标? 当我在eclipse中创建一个新的Android项目并使用AppTheme时,如下所示
<style name="AppTheme" parent="android:Theme.Light" />
窗口标题栏标题和图标如我所愿出现。
当我在mainfest文件中选择自己的主题时,仅标题显示在窗口标题栏中,而不显示图标。
我的主题如下
style name="GenericWallpaper" parent="android:Theme.Light"
item name="android:windowBackground">@drawable/blackbackground
item name="android:layout_width">fill_parent
item name="android:layout_height">fill_parent
我宁愿使用我的xml样式文件来指定所需的图标和标题,而不是必须在每个活动的窗口标题栏中以编程方式进行设置。
我正在使用android:minSdkVersion="8"
, android:targetSdkVersion="15"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.