Using view elevation for shadow during click feedback instead of

creating a shadow bitmap

Change-Id: I331186664c3c448596af3172e0e080921a6a1908
This commit is contained in:
Sunny Goyal committed 2017-11-08 15:13:10 -08:00
1 parent 4d52411cea
commit ea529083bd
12 files changed
+186 -68

No files matched your search

@@ -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);
}
/**