Example usage for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN

List of usage examples for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN

Introduction

In this page you can find the example usage for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN.

Prototype

int TRANSIT_FRAGMENT_OPEN

To view the source code for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN.

Click Source Link

Document

Fragment is being added onto the stack

Usage

From source file:ab.util.AbDialogUtil.java

/**
 * ??./*w w  w. j  a va  2s  .  co m*/
 * 
 * @param context
 *            the context
 * @param indeterminateDrawable
 * @param message
 *            the message
 */
public static AbLoadDialogFragment showLoadDialog(Context context, int indeterminateDrawable, String message,
        AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbLoadDialogFragment newFragment = AbLoadDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Holo_Light_Dialog);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:com.tony.selene.dialog.AbDialogUtil.java

/**
 * ??./*from ww w.  ja  va2s .  c o m*/
 * 
 * @param context
 * @param indeterminateDrawable
 * @param message
 * @param style
 * @param abDialogOnRefreshListener
 * @return
 */
public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable,
        String message, int style, AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            style);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, dialogTag);
    return newFragment;
}

From source file:com.ab.util.AbDialogUtil.java

/**
 * ??./* w w w.j a va 2 s  .co m*/
 * @param context
 * @param indeterminateDrawable
 * @param message
 * @param abDialogOnRefreshListener
 * @return
 */
public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable,
        String message, AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Holo_Light_Dialog);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    //    
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:ab.util.AbDialogUtil.java

/**
 * ??.//from www . jav  a2s.c o m
 * 
 * @param context
 *            the context
 * @param indeterminateDrawable
 * @param message
 *            the message
 */
public static AbLoadDialogFragment showLoadPanel(Context context, int indeterminateDrawable, String message) {
    FragmentActivity activity = (FragmentActivity) context;
    AbLoadDialogFragment newFragment = AbLoadDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Light_Panel);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:com.tct.mail.ui.OnePaneController.java

@Override
public void launchFragment(final Fragment fragment, final int selectPosition) {
    //TS: jian.xu 2015-10-17 EMAIL BUGFIX-708075 MOD_S
    try {/*from  w  ww.ja  v  a 2 s  .  c o  m*/
        replaceFragment(fragment, FragmentTransaction.TRANSIT_FRAGMENT_OPEN, TAG_CUSTOM_FRAGMENT,
                R.id.content_pane);
    } catch (IllegalStateException e) {
        LogUtils.e(LogUtils.TAG, e, "launchFragment error");
    }
    //TS: jian.xu 2015-10-17 EMAIL BUGFIX-708075 MOD_E
}

From source file:com.ab.util.AbDialogUtil.java

/**
 * ??./*from ww w  .j  a  v  a 2s  .c  om*/
 * @param context the context
 * @param indeterminateDrawable
 * @param message the message
 */
public static AbRefreshDialogFragment showRefreshPanel(Context context, int indeterminateDrawable,
        String message) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Light_Panel);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(null);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    //    
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:com.pszh.ablibrary.util.AbDialogUtil.java

/**
 * ??.//from  w ww  .ja v  a  2s  .co m
 * @param context
 * @param indeterminateDrawable
 * @param message
 * @param abDialogOnLoadListener
 * @return
 */
public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable,
        String message, AbDialogFragment.AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Holo_Light_Dialog);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    //    
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:ab.util.AbDialogUtil.java

/**
 * ??.//from ww w  . java 2  s.c  o m
 * 
 * @param context
 *            the context
 * @param indeterminateDrawable
 * @param message
 *            the message
 * @param
 */
public static AbLoadDialogFragment showLoadPanel(Context context, int indeterminateDrawable, String message,
        AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbLoadDialogFragment newFragment = AbLoadDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Light_Panel);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:com.ab.util.AbDialogUtil.java

/**
 * ??./*w  w  w. j a  v a 2s.  c om*/
 * @param context
 * @param indeterminateDrawable
 * @param message
 * @param abDialogOnRefreshListener
 * @return
 */
public static AbRefreshDialogFragment showRefreshPanel(Context context, int indeterminateDrawable,
        String message, AbDialogOnLoadListener abDialogOnLoadListener) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Light_Panel);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    //    
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}

From source file:ab.util.AbDialogUtil.java

/**
 * ??.//from  w  w w . java2 s .  c om
 * 
 * @param context
 *            the context
 * @param indeterminateDrawable
 * @param message
 *            the message
 * @param
 */
public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable,
        String message) {
    FragmentActivity activity = (FragmentActivity) context;
    AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Holo_Light_Dialog);
    newFragment.setIndeterminateDrawable(indeterminateDrawable);
    newFragment.setMessage(message);
    newFragment.setAbDialogOnLoadListener(null);
    FragmentTransaction ft = activity.getFragmentManager().beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(ft, mDialogTag);
    return newFragment;
}