自定义主题很容易,先建一个res/values/styles.xml文件,再到这个文件中加入主题样式文件。style标签还可以继承,可以继承父类中的所有的元素。
代码如下:
代码如下:
<resources>
<style name="Theme.CustomDialog" parent="android:style/Theme.Dialog">
<item name="android:windowBackground">@drawable/filled_box</item>
</style>
</resources>