解决小米4无法画间隔问题

This commit is contained in:
huangzhuanghua
2016-09-18 16:57:13 +08:00
parent a80c577f1f
commit 597651248a
16 changed files with 99 additions and 87 deletions

View File

@ -33,6 +33,7 @@ public class CardRelativeLayout extends RelativeLayout {
}
private void init(Context context, AttributeSet attrs) {
setWillNotDraw(false);
topDrawable = getContext().getResources().getDrawable(R.drawable.frame_top);
bottomDrawable = getContext().getResources().getDrawable(R.drawable.frame_bottom);