alphadelete.aguaconsciente.ui.fragments.AboutFragment.java Source code

Java tutorial

Introduction

Here is the source code for alphadelete.aguaconsciente.ui.fragments.AboutFragment.java

Source

package alphadelete.aguaconsciente.ui.fragments;

import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;

import alphadelete.aguaconsciente.R;

public class AboutFragment extends DialogFragment {
    @Override
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        LayoutInflater dialogInflater = getActivity().getLayoutInflater();
        View openSourceLicensesView = dialogInflater.inflate(R.layout.fragment_about, null);

        AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(getActivity());
        dialogBuilder.setView(openSourceLicensesView).setTitle((getString(R.string.action_about)))
                .setNeutralButton(android.R.string.ok, null);

        return dialogBuilder.create();
    }
}