注意两个地方
CardView 需要设置android:layout_marginTop="@dimen/y70"才会显示
去除白边:
dialog.setContentView(view);
dialog.getDelegate().findViewById(android.support.design.R.id.design_bottom_sheet)
.setBackgroundColor(context.getResources().getColor(android.R.color.transparent));