@@ -0,0 +1,2599 @@
+package fr.tvbarthel.lib.blurdialogfragment;%0A%0Aimport android.annotation.TargetApi;%0Aimport android.app.DialogFragment;%0Aimport android.content.DialogInterface;%0Aimport android.os.Build;%0Aimport android.os.Bundle;%0A%0A/**%0A * Encapsulate dialog behavior with blur effect.%0A * %3Cp/%3E%0A * All the screen behind the dialog will be blurred except the action bar.%0A */%0A@TargetApi(Build.VERSION_CODES.HONEYCOMB)%0Apublic class BlurDialogFragment extends DialogFragment %7B%0A%0A    /**%0A     * Bundle key used to start the blur dialog with a given scale factor (float).%0A     */%0A    public static final String BUNDLE_KEY_DOWN_SCALE_FACTOR = %22bundle_key_down_scale_factor%22;%0A%0A    /**%0A     * Bundle key used to start the blur dialog with a given blur radius (int).%0A     */%0A    public static final String BUNDLE_KEY_BLUR_RADIUS = %22bundle_key_blur_radius%22;%0A%0A    /**%0A     * Log cat%0A     */%0A    private static final String TAG = BlurDialogFragment.class.getSimpleName();%0A%0A    /**%0A     * Engine used to blur.%0A     */%0A    private BlurDialogEngine mBlurEngine;%0A%0A    /**%0A     *%0A     */%0A    private boolean mDebugEnable;%0A%0A    /**%0A     * default constructor as needed%0A     */%0A    public BlurDialogFragment() %7B%0A        mDebugEnable = false;%0A    %7D%0A%0A    @Override%0A    public void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A%0A        mBlurEngine = new BlurDialogEngine(getActivity());%0A        mBlurEngine.debug(mDebugEnable);%0A%0A        Bundle args = getArguments();%0A        if (args != null) %7B%0A            if (args.containsKey(BUNDLE_KEY_BLUR_RADIUS)) %7B%0A                mBlurEngine.setBlurRadius(args.getInt(BUNDLE_KEY_BLUR_RADIUS));%0A            %7D%0A            if (args.containsKey(BUNDLE_KEY_DOWN_SCALE_FACTOR)) %7B%0A                mBlurEngine.setDownScaleFactor(args.getFloat(BUNDLE_KEY_DOWN_SCALE_FACTOR));%0A            %7D%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void onResume() %7B%0A        super.onResume();%0A        mBlurEngine.onResume(getRetainInstance());%0A    %7D%0A%0A%0A    @Override%0A    public void onDismiss(DialogInterface dialog) %7B%0A        super.onDismiss(dialog);%0A        mBlurEngine.onDismiss();%0A    %7D%0A%0A    @Override%0A    public void onDestroy() %7B%0A        super.onDestroy();%0A        mBlurEngine.onDestroy();%0A    %7D%0A%0A    @Override%0A    public void onDestroyView() %7B%0A        if (getDialog() != null) %7B%0A            getDialog().setDismissMessage(null);%0A        %7D%0A        super.onDestroyView();%0A    %7D%0A%0A    /**%0A     * Enable or disable debug mode.%0A     *%0A     * @param debugEnable true if debug mode should be enabled.%0A     */%0A    public void debug(boolean debugEnable) %7B%0A        mDebugEnable = debugEnable;%0A    %7D%0A%7D%0A

Add BlurDialogFragment for target API 11