Material-dialogs: How to remove padding in custom view and disable title?

Created on 20 May 2015  路  4Comments  路  Source: afollestad/material-dialogs

as this code :

boolean wrapInScrollView = true;
new MaterialDialog.Builder(this)
.customView(R.layout.custom_view, wrapInScrollView)
.positiveText(R.string.positive)
.show();

In my custom_view.xml, i have custom title using textedit, and also applied background color. The problem is, MaterialDialog creating padding on all side. So how do I remove the padding?

Most helpful comment

Pass false for wrapInScrollView and handle scrolling yourself.

All 4 comments

Pass false for wrapInScrollView and handle scrolling yourself.

tried that. But the title padding is still there.

Oh, yeah you can't remove title padding. It uses the Material Design
Guidelines specs.

@afollestad hey there, quick question, what about bottom padding?

screenshot_1483349461

Was this page helpful?
0 / 5 - 0 ratings