-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何修改圆角大小 #228
Comments
具体是指哪个组件呢? |
MessageDialog |
Material主题么? |
是的 |
步骤一:
步骤二: 步骤三: |
对应的暗色对话框背景资源名是 |
这样一修改是不是所有的弹窗圆角都改变了?谢谢 |
对,如果需要单独设置,请修改上述步骤一的资源名名称,修改为非 .setDialogLifecycleCallback(new DialogLifecycleCallback<MessageDialog>() {
@Override
public void onShow(MessageDialog dialog) {
super.onShow(dialog);
dialog.getDialogImpl().bkg.setBackgroundResource(R.drawable.your_custom_bkg);
}
}) 对背景进行设置。 |
另外一提,DialogX 的对话框内的组件全都是对外暴露的,但要进行操作,请确保在对话框实例创建后进行,例如 DialogLifecycleCallback#onShow 后进行修改 |
OK,谢谢啦 |
另外分享给你一则好消息,在下一个版本开始,将会对部分对话框增加 |
No description provided.
The text was updated successfully, but these errors were encountered: