Example usage for android.support.v4.app DialogFragment STYLE_NORMAL

List of usage examples for android.support.v4.app DialogFragment STYLE_NORMAL

Introduction

In this page you can find the example usage for android.support.v4.app DialogFragment STYLE_NORMAL.

Prototype

int STYLE_NORMAL

To view the source code for android.support.v4.app DialogFragment STYLE_NORMAL.

Click Source Link

Document

Style for #setStyle(int,int) : a basic, normal dialog.

Usage

From source file:com.orange.ocara.ui.dialog.AudioRecorderDialog.java

public static AudioRecorderDialog newInstance(String recordFilename) {
    AudioRecorderDialog dialog = new AudioRecorderDialog_();
    Bundle args = new Bundle();
    args.putString("recordFilename", recordFilename);
    dialog.setStyle(DialogFragment.STYLE_NO_TITLE | DialogFragment.STYLE_NORMAL, 0);
    dialog.setArguments(args);/*from w w  w.j av a2 s  . c  o  m*/
    return dialog;
}

From source file:com.orange.ocara.ui.dialog.AudioPlayerDialog.java

public static AudioPlayerDialog newInstance(String uri, int x, int y) {
    AudioPlayerDialog dialog = new AudioPlayerDialog_();
    Bundle args = new Bundle();
    args.putString("uri", uri);
    if (x >= 0) {
        args.putInt("x", x);
    }// w w w . j a va2  s.  c  o  m
    if (y >= 0) {
        args.putInt("y", y);
    }
    dialog.setStyle(DialogFragment.STYLE_NO_TITLE | DialogFragment.STYLE_NORMAL, 0);
    dialog.setArguments(args);
    return dialog;
}

From source file:rubenjg.tiroconarco.ui.fragment.AboutFragment.java

@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    getDialog().setTitle("Acerca De");
    setStyle(DialogFragment.STYLE_NORMAL, R.style.Theme_Sherlock_Dialog);
    View v = inflater.inflate(R.layout.fragment_about, container, false);
    Button b = (Button) v.findViewById(R.id.fragment_about_button);
    b.setOnClickListener(new OnClickListener() {

        @Override/*from w w  w . ja va2 s  .  com*/
        public void onClick(View v) {
            dismiss();
        }
    });
    return v;
}

From source file:com.raychenon.licensedroid.OpenSourceDialogFragment.java

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    if (delegate == null) {
        delegate = new FragmentDelegate();
    }//from   w ww.j  a v  a 2s. c  o  m

    openSourceList = delegate.onCreate(getArguments(), KEY_ARG_LIST_OPENSOURCE);

    setStyle(DialogFragment.STYLE_NORMAL, R.style.LicenseDroidDialog);
}

From source file:de.markusressel.android.tutorialtooltip.DialogFragmentTest.java

public static DialogFragmentTest newInstance() {
    DialogFragmentTest fragment = new DialogFragmentTest();
    fragment.setStyle(DialogFragment.STYLE_NORMAL, R.style.DialogTheme);
    //        fragment.setTargetFragment(targetFragment, 0);
    return fragment;
}

From source file:eu.masconsult.bgbanking.activity.fragment.ChooseAccountTypeFragment.java

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setStyle(DialogFragment.STYLE_NORMAL, R.style.Theme_bgBanking_Dialog);

    Bank[] banks = Bank.values();/*from   w ww  .j  av a2 s . c o m*/
    adapter = new BankAdapter(getActivity(), banks);
}

From source file:com.robopupu.feature.about.view.LicensesInfoFragment.java

@Provides(LicensesInfoView.class)
public LicensesInfoFragment() {
    setStyle(DialogFragment.STYLE_NORMAL, R.style.View_Fragment_Dialog);
}

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

/**
 * ??./*w  ww .  java2s. c  om*/
 * 
 * @param view
 * @return
 */
public static AbSampleDialogFragment showFullScreenDialog(View view) {
    FragmentActivity activity = (FragmentActivity) view.getContext();
    // Create and show the dialog.
    AbSampleDialogFragment newFragment = AbSampleDialogFragment.newInstance(DialogFragment.STYLE_NORMAL,
            android.R.style.Theme_Black_NoTitleBar_Fullscreen);
    newFragment.setContentView(view);
    FragmentManager fm = activity.getFragmentManager();
    android.app.FragmentTransaction ft = fm.beginTransaction();
    // 
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
    newFragment.show(fm, dialogTag);
    return newFragment;
}

From source file:com.bingzer.android.eula.EulaFragment.java

@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override/* w  ww .  j  av a 2 s .c o  m*/
public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
        setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Holo_Light);
    else
        setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Light_NoTitleBar_Fullscreen);
    setRetainInstance(true);
}

From source file:com.example.android.directboot.TimePickerFragment.java

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Material_Light_Dialog);
}