// Path: libcore-ui/src/main/java/com/android/libcore_ui/application/BaseApplication.java
// public class BaseApplication extends RootApplication{
// }


import android.view.View;
import com.android.libcore_ui.application.BaseApplication;
import java.util.ArrayList;
package com.android.libcore_ui.dialog;




/**
 * Description: dialog的生成类，用来获取所需要基本常用的dialog
 *
 * @author zzp(zhao_zepeng@hotmail.com)
 * @since 2015-07-16
 */
public class DialogCreator {

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive){
        return createDialog(title, message, positive, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative){
        return createDialog(title, message, positive, negative, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     * @param neutral 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative, Object neutral){
        return createDialog(title, message, positive, negative, neutral, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     * @param neutral 只能为string和view
     * @param others 需要另外加上按钮的数据集合
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative, Object neutral,
                                      ArrayList<OtherButton> others){
// Path: libcore-ui/src/main/java/com/android/libcore_ui/application/BaseApplication.java
// public class BaseApplication extends RootApplication{
// }


// Path: libcore-ui/src/main/java/com/android/libcore_ui/dialog/DialogCreator.java
import android.view.View;
import com.android.libcore_ui.application.BaseApplication;
import java.util.ArrayList;

package com.android.libcore_ui.dialog;




/**
 * Description: dialog的生成类，用来获取所需要基本常用的dialog
 *
 * @author zzp(zhao_zepeng@hotmail.com)
 * @since 2015-07-16
 */
public class DialogCreator {

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive){
        return createDialog(title, message, positive, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative){
        return createDialog(title, message, positive, negative, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     * @param neutral 只能为string和view
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative, Object neutral){
        return createDialog(title, message, positive, negative, neutral, null);
    }

    /**
     * 创建dialog函数
     * @param title 只能为string和view
     * @param message 只能为string和view
     * @param positive 只能为string和view
     * @param negative 只能为string和view
     * @param neutral 只能为string和view
     * @param others 需要另外加上按钮的数据集合
     */
    public static AppDialog createDialog(Object title, Object message, Object positive, Object negative, Object neutral,
                                      ArrayList<OtherButton> others){
        AppDialog dialog = new AppDialog(BaseApplication.getInstance());