I created a custom dialog theme in my Android application, and I planned to override the layout used for the dialog title. I saw that in the standard android Themethere is this attribute that looks like the one that needs to be changed.
<item name="dialogTitleDecorLayout">@layout/dialog_title</item>
But when I try to override it in my Theme
<style name="Theme.Dialog.MyDialog" parent="android:Theme.Dialog">
<item name="android:windowBackground">@android:color/black</item>
<item name="android:dialogTitleDecorLayout">@layout/my_dialog_title</item>
</style>
I see the following error:
A resource was not found that matches the specified name: attr "Android: dialogTitleDecorLayout
Why can't I change it and how do I know which attributes can be changed and which cannot?
source
share