Android Open Source - android-job-queue-exemple Error Dialog Fragment






From Project

Back to project page android-job-queue-exemple.

License

The source code is released under:

GNU General Public License

If you think the Android project android-job-queue-exemple 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.example.testpathlib.view.fragment;
/*  w  w w.  j ava 2  s  .  co m*/
import com.example.testpathlib.R;

import android.app.DialogFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by Julien Quivreux on 23/12/13.
 */
public class ErrorDialogFragment extends DialogFragment
{

    private TextView tv;
    private String text;
    public ErrorDialogFragment() {
        // Empty constructor required for DialogFragment
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.error_fragment_dialog, container);
        tv = (TextView) view.findViewById(R.id.tvErrorMessage);
        tv.setText(text);
        getDialog().setTitle("Error");

        return view;
    }


    public void setText(String text)
    {
        this.text = text;
    }
}




Java Source Code List

com.example.testpathlib.PathApplication.java
com.example.testpathlib.Utils.java
com.example.testpathlib.events.Event.java
com.example.testpathlib.jobs.GetDataJob.java
com.example.testpathlib.view.activity.MainActivity.java
com.example.testpathlib.view.fragment.ErrorDialogFragment.java
com.example.testpathlib.view.fragment.PlaceholderFragment.java