From 3a9eefec23efbc3646e22373e8755b5f65f914c2 Mon Sep 17 00:00:00 2001 From: martin seal Date: Wed, 11 Sep 2019 10:49:09 +0100 Subject: [PATCH] changed ripple to color control highlight --- .../com/github/sealstudios/fab/FloatingActionButton.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/library/src/main/java/com/github/sealstudios/fab/FloatingActionButton.java b/library/src/main/java/com/github/sealstudios/fab/FloatingActionButton.java index f6b08a5..fb412aa 100755 --- a/library/src/main/java/com/github/sealstudios/fab/FloatingActionButton.java +++ b/library/src/main/java/com/github/sealstudios/fab/FloatingActionButton.java @@ -1314,10 +1314,13 @@ public void showButtonInMenu(boolean animate) { // return color; // } + + //@color/ripple_color + private static int getFabPressedColor(Context context) { int colorAttr; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - colorAttr = android.R.attr.colorAccent; + colorAttr = android.R.attr.colorControlHighlight; } else { //Get colorAccent defined for AppCompat colorAttr = context.getResources().getIdentifier("fabPressedColor", "attr", context.getPackageName()); @@ -1330,7 +1333,7 @@ private static int getFabPressedColor(Context context) { private static int getDefaultFabRippleColor(Context context) { int colorAttr; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { - colorAttr = android.R.attr.colorAccent; + colorAttr = android.R.attr.colorControlHighlight; } else { //Get colorAccent defined for AppCompat colorAttr = context.getResources().getIdentifier("fabRippleColor", "attr", context.getPackageName());