在写CustomDialog时报错:
#1003 android.content.res.Resources$NotFoundException
Resource ID #0x7f0e01f7
com.ftl.funtunlyn.view.CustomDialog.<init>(CustomDialog.java:30)
代码:
package com.ftl.funtunlyn.view;
/*
* 项目名: Funtunlyn
* 包名: com.ftl.funtunlyn.view
* 文件名: CustomDialog
* 创建者: fangyu
* 创建时间: 2018/12/19 15:02 2018
* 描述: 自定义Dialog
*/
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.Window;
import android.view.WindowManager;
import com.ftl.funtunlyn.R;
public class CustomDialog extends Dialog {
//定义模版
public CustomDialog(Context context, int layout, int style) {
this( context, WindowManager.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, layout, style, Gravity.CENTER );
}
//定义属性
public CustomDialog(Context context, int width, int height,