Created
January 2, 2015 00:46
-
-
Save colabug/d62a154b6b8d4161e818 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<dimen name="button_margin">5dp</dimen> | |
<dimen name="button_dimensions">60dp</dimen> | |
<dimen name="button_text_size">30sp</dimen> | |
<dimen name="zero_button_width">130dp</dimen> | |
<dimen name="equals_button_width">200dp</dimen> | |
<dimen name="display_padding">20dp</dimen> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<resources> | |
<style name="BaseButton"> | |
<item name="android:layout_width">@dimen/button_dimensions</item> | |
<item name="android:layout_height">@dimen/button_dimensions</item> | |
<item name="android:layout_margin">@dimen/button_margin</item> | |
<item name="android:textSize">@dimen/button_text_size</item> | |
<item name="android:textColor">@android:color/white</item> | |
</style> | |
<!--Number--> | |
<style name="Number" parent="BaseButton"> | |
<item name="android:background">@color/brown</item> | |
</style> | |
<!--Zero--> | |
<style name="Zero" parent="Number"> | |
<item name="android:layout_width">@dimen/zero_button_width</item> | |
</style> | |
<!--Operator--> | |
<style name="Operator" parent="BaseButton"> | |
<item name="android:background">@color/green</item> | |
</style> | |
<!--Clear--> | |
<style name="Clear" parent="BaseButton"> | |
<item name="android:background">@color/red</item> | |
</style> | |
<!--Equals--> | |
<style name="Equals" parent="BaseButton"> | |
<item name="android:layout_width">@dimen/equals_button_width</item> | |
<item name="android:background">@color/blue</item> | |
</style> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment