Using xml-drawable and elevation as folder background

Change-Id: I21376bd3de8cd58c646d0898d5a8303af9057218
This commit is contained in:
Sunny Goyal
2015-05-07 16:13:12 -07:00
parent 4e267f4cdc
commit 75deaf3d8f
4 changed files with 30 additions and 7 deletions

View File

@@ -129,6 +129,10 @@ public class DragView extends View {
int ms = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
measure(ms, ms);
mPaint = new Paint(Paint.FILTER_BITMAP_FLAG);
if (Utilities.isLmpOrAbove()) {
setElevation(getResources().getDimension(R.dimen.drag_elevation));
}
}
/** Sets the scale of the view over the normal workspace icon size. */