Module : ICONDLG.CPP Purpose: Implementation for an MFC class for an Icon Picker dialog similar to the version found in Internet Explorer 4 PP2 Created: PJN / ICONDLG/1 / 25-07-1997 History: None Copyright (c) 1997 by PJ Naughter. All rights reserve
前言:圆角对话框在项目中用的越来越多,之前一篇文章有介绍过使用系统的AlertDialog+CardView(Android中使用CardView实现圆角对话框)实现了圆角对话框的样式,今天介绍自定义Dialog实现通用的圆角对话框。
效果图:
1.继承自AlertDialog,重写onCreat
/**
* Created by ruancw on 2018/6/7.
* 自定义的带圆角的对话框
*/
public class RoundCornerDialog extends Al