Android Open Source - android-utils Base Dialog






From Project

Back to project page android-utils.

License

The source code is released under:

Apache License

If you think the Android project android-utils listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.omegar.android.utils;
// w  ww  . j  av a 2 s . c o  m
import com.omegar.support.app.SupportActionBarActivity;

import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;

public class BaseDialog extends DialogFragment {
  @Override
  public Dialog onCreateDialog(Bundle savedInstanceState) {
    Logger.i("Created " + getClass().getSimpleName());

    return super.onCreateDialog(savedInstanceState);
  }

  @Override
  public void onDismiss(DialogInterface dialog) {
    Logger.i("Dismissed " + getClass().getSimpleName());

    super.onDismiss(dialog);
  }

  public void show(SupportActionBarActivity activity) {
    show(activity.getSupportFragmentManager(),
        BaseDialog.class.getSimpleName());
  }
}




Java Source Code List

com.omegar.android.utils.BaseDialog.java
com.omegar.android.utils.Logger.java
com.omegar.android.utils.PhotoHelper.java
com.omegar.android.utils.components.DividedLinearLayout.java
com.omegar.android.utils.components.NetworkImageView.java
com.omegar.android.utils.components.NonScrollableGridView.java
com.omegar.android.utils.components.NonScrollableListView.java
com.omegar.android.utils.components.ProportionalLinearLayout.java
com.omegar.android.utils.components.UnderlineTextView.java