I want to overload how an android Button looks, except I want to overload only one attribute i.e. the android:background. I know I could write something like:
<style name="App_TextButtonStyle" parent="???">
<item name="android:background">@drawable/filled_roundededges_nostroke</item>
</style>
Where parent="???" specifies which style I inherit from. My question is which style should I inherit from do that I get everything from the android default style for buttons and just define a new background.
This is mostly for future visitors, I found a solution to the problem:
@android:style/Widget.Buttonreferences the default style of the button in the currently selected theme. You could also use the holo widget button style@android:style/Widget.Holo.Button(available since api 11).You might want to look in
<android-sdk-install-folder>/platforms/android-XX/data/res/valuesfor the filesstyles.xmlandthemes.xmlto check out all styles android uses for a given platform version.