this isn't really Kotlin related, but it's so hard...
# android
d
this isn't really Kotlin related, but it's so hard to google themes/styles stuff: anyone know why if I have a theme applying
buttonStyle
,
android:theme
on that style does not get applied? e.g.
Copy code
<style name="Theme.Mine" ...>
  <item name="buttonStyle">@style/Widget.Mine.MyButton</item>
  ...
</style>
<style name="Widget.Mine.MyButton" ...>
  <item name="android:theme">@style/ThemeOverlay.Mine.MyButton</item>
  ...
</style>
<style name="ThemeOverlay.Mine.MyButton" ...>
  <item name="colorAccent">@color/some_color</item>
  ...
</style>
the
android:theme
only seems to work if I apply it directly to a
Button
(or
style="@style/Widget.Mine.Button"
) 😞