|
@@ -261,11 +261,11 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
|
|
|
setMargin(customFrame, -1, -1, 0, 0);
|
|
|
LayoutInflater li = LayoutInflater.from(mContext);
|
|
|
|
|
|
- final int customFramePadding = (int) mContext.getResources().getDimension(R.dimen.md_dialog_frame_margin);
|
|
|
+ final int customFramePadding = (int) mContext.getResources().getDimension(R.dimen.md_main_frame_margin);
|
|
|
int listPaddingBottom;
|
|
|
- View titleFrame = view.findViewById(R.id.titleFrameCustomView);
|
|
|
- if (titleFrame.getVisibility() == View.VISIBLE) {
|
|
|
- titleFrame.setPadding(customFramePadding, title.getPaddingTop(), customFramePadding, title.getPaddingBottom());
|
|
|
+ View title = view.findViewById(R.id.titleCustomView);
|
|
|
+ if (title.getVisibility() == View.VISIBLE) {
|
|
|
+ title.setPadding(customFramePadding, title.getPaddingTop(), customFramePadding, title.getPaddingBottom());
|
|
|
listPaddingBottom = customFramePadding;
|
|
|
} else {
|
|
|
listPaddingBottom = (int) mContext.getResources().getDimension(R.dimen.md_main_frame_margin);
|
|
@@ -274,6 +274,7 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
|
|
|
customFrame.setPadding(customFrame.getPaddingLeft(), customFrame.getPaddingTop(),
|
|
|
customFrame.getPaddingRight(), listPaddingBottom);
|
|
|
|
|
|
+ View titleFrame = (View) title.getParent();
|
|
|
customFrame.removeAllViews();
|
|
|
customFrame.addView(titleFrame);
|
|
|
final int itemColor = DialogUtils.resolveColor(getContext(), android.R.attr.textColorSecondary);
|