fixed crash on api < 21 due to drawable using attrs

This commit is contained in:
Adithya Abraham Philip
2015-08-06 00:20:48 +05:30
parent 7086a67c2e
commit f17dabce8c
7 changed files with 35 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?attr/colorFabBackground"/>
<!-- using an attribute for color will crash on API <= 20. Refer to http://stackoverflow.com/a/13471695/3000919 -->
<solid android:color="#b2000000"/>
<padding
android:left="16dp"
android:top="4dp"