Search in sources :

Example 1 with IToast

use of com.aviary.android.feather.widget.IToast in project mobile-android by photo.

the class UIUtils method createModalLoaderToast.

public static IToast createModalLoaderToast() {
    IToast mToastLoader = IToast.make(mContext, -1);
    View view = getLayoutInflater().inflate(R.layout.feather_progress_view, null);
    AnimatedRotateDrawable d = new AnimatedRotateDrawable(mContext.getResources(), R.drawable.feather_spinner_white_76, 12, 100);
    ProgressBar progress = (ProgressBar) view.findViewById(R.id.progress);
    progress.setIndeterminateDrawable(d);
    mToastLoader.setView(view);
    return mToastLoader;
}
Also used : AnimatedRotateDrawable(com.aviary.android.feather.graphics.AnimatedRotateDrawable) IToast(com.aviary.android.feather.widget.IToast) View(android.view.View) ProgressBar(android.widget.ProgressBar)

Aggregations

View (android.view.View)1 ProgressBar (android.widget.ProgressBar)1 AnimatedRotateDrawable (com.aviary.android.feather.graphics.AnimatedRotateDrawable)1 IToast (com.aviary.android.feather.widget.IToast)1