diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-08-06 00:20:48 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-08-06 02:02:11 +0530 |
commit | f17dabce8c85dbc2e9c18f068d84c398215b3ce9 (patch) | |
tree | 4df595faee9b7d9668e2f88356cfa442b9e5e77e /OpenKeychain/src/main/res/drawable | |
parent | 7086a67c2e131542c0ce903e1a5db887deae59fe (diff) | |
download | open-keychain-f17dabce8c85dbc2e9c18f068d84c398215b3ce9.tar.gz open-keychain-f17dabce8c85dbc2e9c18f068d84c398215b3ce9.tar.bz2 open-keychain-f17dabce8c85dbc2e9c18f068d84c398215b3ce9.zip |
fixed crash on api < 21 due to drawable using attrs
Diffstat (limited to 'OpenKeychain/src/main/res/drawable')
-rw-r--r-- | OpenKeychain/src/main/res/drawable/cardview_header.xml | 2 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/drawable/fab_label_background.xml | 3 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/drawable/section_header_dark.xml (renamed from OpenKeychain/src/main/res/drawable/section_header.xml) | 2 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/drawable/section_header_light.xml | 11 |
4 files changed, 15 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/res/drawable/cardview_header.xml b/OpenKeychain/src/main/res/drawable/cardview_header.xml index ff08f9fe3..213c78277 100644 --- a/OpenKeychain/src/main/res/drawable/cardview_header.xml +++ b/OpenKeychain/src/main/res/drawable/cardview_header.xml @@ -6,6 +6,6 @@ android:height="1dp" android:width="1000dp" /> - <solid android:color="?attr/colorCardViewHeaderDivider" /> + <solid android:color="#808080" /> </shape> diff --git a/OpenKeychain/src/main/res/drawable/fab_label_background.xml b/OpenKeychain/src/main/res/drawable/fab_label_background.xml index aa5e0a88e..b2d5954d8 100644 --- a/OpenKeychain/src/main/res/drawable/fab_label_background.xml +++ b/OpenKeychain/src/main/res/drawable/fab_label_background.xml @@ -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" diff --git a/OpenKeychain/src/main/res/drawable/section_header.xml b/OpenKeychain/src/main/res/drawable/section_header_dark.xml index 4bee8049b..e60fc085d 100644 --- a/OpenKeychain/src/main/res/drawable/section_header.xml +++ b/OpenKeychain/src/main/res/drawable/section_header_dark.xml @@ -6,6 +6,6 @@ android:height="2dp" android:width="1000dp" /> - <solid android:color="?attr/colorHeaderText" /> + <solid android:color="#d0d0d0" /> </shape> diff --git a/OpenKeychain/src/main/res/drawable/section_header_light.xml b/OpenKeychain/src/main/res/drawable/section_header_light.xml new file mode 100644 index 000000000..a47a57ce3 --- /dev/null +++ b/OpenKeychain/src/main/res/drawable/section_header_light.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + + <size + android:height="2dp" + android:width="1000dp" /> + + <solid android:color="#212121" /> + +</shape> |