Using xml-drawable and elevation as folder background

Change-Id: I21376bd3de8cd58c646d0898d5a8303af9057218
This commit is contained in:
Sunny Goyal committed 2015-05-07 16:13:35 -07:00
1 parent 4e267f4cdc
commit 75deaf3d8f
4 files changed
+30 -7

No files matched your search

+4
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. */