Suspending all threads when using GifTextView on AsyncTask?
<p>I'm trying to use <code>GifTextView</code> for my animation. This <code>AsyncTask</code> actually works but it takes so long when I use <code>GifTextView</code>. If <code>GifTextView</code> is removed from this code, <code>AsyncTask</code> works fast. </p>

<pre><code>public class PDFCreate extends AsyncTask&lt;String,String,String&gt; {
    @Override
    protected String doInBackground(String... strings) {
        String FILE = Environment.getExternalStorageDirectory().toString()
                +"/TEST/PDF/"+Ex_date+".pdf";
        try {
                Document document = new Document(PageSize.A4);
                String root = Environment.getExternalStorageDirectory().toString();
                File myDir = new File(root + "/TEST/PDF");
                myDir.mkdirs();

                    PdfWriter.getInstance(document, new FileOutputStream(FILE));

                document.open();
                addMetaData(document,"LEAKS");
                addTitlePage(document,Ex_title);
                document.close();
        } catch (DocumentException e) {
            FILE = "Error Create Document";
        } catch (FileNotFoundException e) {
            FILE = "Cannot Create Document Path";
        }
        return FILE;
    }

    @Override
    protected void onPreExecute() {
        super.onPreExecute();
        GifTextView git = (GifTextView) findViewById(R.id.loading_gift);
        git.setVisibility(View.VISIBLE);
    }

    @Override
    protected void onPostExecute(String st) {
        super.onPostExecute(st);
        git.setVisibility(View.GONE);
        ViewDialog alert = new ViewDialog();
        alert.showDialog(detail.this,"File have been saved on : \n" + st);
    }
}
</code></pre>

<p>My Question is, how to use <code>GifTextView</code> without slowing down my program?</p>