Using view elevation for shadow during click feedback instead of

creating a shadow bitmap

Change-Id: I331186664c3c448596af3172e0e080921a6a1908
This commit is contained in:
Sunny Goyal
2017-10-31 13:33:03 -07:00
parent 4d52411cea
commit ea529083bd
12 changed files with 186 additions and 68 deletions

View File

@@ -157,14 +157,7 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
@Override
public void setPressedIcon(BubbleTextView icon, Bitmap background) {
if (icon == null || background == null) {
mTouchFeedbackView.setBitmap(null);
mTouchFeedbackView.animate().cancel();
} else if (mTouchFeedbackView.setBitmap(background)) {
View rv = findViewById(R.id.apps_list_view);
mTouchFeedbackView.alignWithIconView(icon, (ViewGroup) icon.getParent(), rv);
mTouchFeedbackView.animateShadow();
}
mTouchFeedbackView.setPressedIcon(icon, background);
}
/**