[안드로이드] Draw dragShadow from layout resource
Draw dragShadow from layout resource
case : using layout resource file.
case : using layout resource file.
View.MeasureSpec.UNSPECIFIED
is one of the measure mode(=we has no value of exactly measured).
//It cause to measure the shadowView size.
//So, static layout dimens are ignored.
shadowView.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
//Position of left,top,right,bottom relative to parent.
//Assign a size and position to a view and all of its descendants.
shadowView.layout(0, 0, width, height);
`````