Skip to content

Instantly share code, notes, and snippets.

@clottman
Created April 27, 2017 01:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clottman/55e9c223928f36d856471c43f84cd740 to your computer and use it in GitHub Desktop.
Save clottman/55e9c223928f36d856471c43f84cd740 to your computer and use it in GitHub Desktop.
Updated styles.xml
<?xml version="1.0" encoding="utf-8" ?>
<resources>
<style name="AppTheme" parent="android:Theme.Light">
<!-- or maybe my name should not include @attr? -->
<item name="@attr/buttonAttrReference">@style/ButtonDefaultTheme</item>
</style>
<attr name="buttonAttrReference" format="reference" />
<style name="ButtonDefaultTheme" parent="android:style/Widget.Button">
<item name="android:paddingBottom">0dp</item>
<item name="android:paddingTop">0dp</item>
<item name="android:paddingLeft">10dp</item>
<item name="android:paddingRight">10dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">1</item>
<item name="android:minWidth">100dp</item>
</style>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment