@Override
protected void onFinishInflate() {
super.onFinishInflate();
mMaskingView = new View(getContext());
mMaskingView.setVisibility(View.INVISIBLE);
mMaskingView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));
mMaskingView.setBackgroundColor(Color.BLACK);//sunjinbiao
addView(mMaskingView);
}
protected void onFinishInflate() {
super.onFinishInflate();
mMaskingView = new View(getContext());
mMaskingView.setVisibility(View.INVISIBLE);
mMaskingView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.MATCH_PARENT,
LayoutParams.MATCH_PARENT));
mMaskingView.setBackgroundColor(Color.BLACK);//sunjinbiao
addView(mMaskingView);
}