主题样式的问题
最近刚学Android,请大家多多指教。我想把程序标题隐藏。于是我就引用Andriod自定义的theme:
AndroidManifest.xml
<application android:theme="@android:style/Theme.NoTitleBar.Fullscreen" />
上面确实可以做到,但是我自己也定义了一部分样式,于是我想让我的继承这个样式:
styles.xml
<style name="AppBaseTheme" parent="@android:style/Theme.NoTitleBar.Fullscreen"></style>
AndroidManifest.xml
<application android:theme="@style/AppBaseTheme" />
为什么这样却没效果。 android 主题 theme 布局 样式
[解决办法]
Activity 的设置了theme 就加载activity的theme 如果activity没有就加载application的 如果application也没有 就加载默认的