Android Open Source - FeedListViewDemo Toast Utils






From Project

Back to project page FeedListViewDemo.

License

The source code is released under:

MIT License

If you think the Android project FeedListViewDemo 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 io.bxbxbai.androiddemos.utils;
//from ww w .  j a  va  2  s .  com
import android.content.Context;
import android.widget.Toast;

import io.bxbxbai.androiddemos.AppController;

/**
 * Created by baia on 14-9-21.
 */
public class ToastUtils {
    private ToastUtils() {
    }

    private static void show(Context context, int resId, int duration) {
        Toast.makeText(context, resId, duration).show();
    }

    private static void show(Context context, String message, int duration) {
        Toast.makeText(context, message, duration).show();
    }

    public static void showShort(int resId) {
        Toast.makeText(AppController.getInstance(), resId, Toast.LENGTH_SHORT).show();
    }

    public static void showShort(String message) {
        Toast.makeText(AppController.getInstance(), message, Toast.LENGTH_SHORT).show();
    }

    public static void showLong(int resId) {
        Toast.makeText(AppController.getInstance(), resId, Toast.LENGTH_LONG).show();
    }

    public static void showLong(String message) {
        Toast.makeText(AppController.getInstance(), message, Toast.LENGTH_LONG).show();
    }
}




Java Source Code List

com.android.volley.AuthFailureError.java
com.android.volley.CacheDispatcher.java
com.android.volley.Cache.java
com.android.volley.DefaultRetryPolicy.java
com.android.volley.ExecutorDelivery.java
com.android.volley.NetworkDispatcher.java
com.android.volley.NetworkError.java
com.android.volley.NetworkResponse.java
com.android.volley.Network.java
com.android.volley.NoConnectionError.java
com.android.volley.ParseError.java
com.android.volley.RequestQueue.java
com.android.volley.Request.java
com.android.volley.ResponseDelivery.java
com.android.volley.Response.java
com.android.volley.RetryPolicy.java
com.android.volley.ServerError.java
com.android.volley.TimeoutError.java
com.android.volley.VolleyError.java
com.android.volley.VolleyLog.java
com.android.volley.toolbox.AndroidAuthenticator.java
com.android.volley.toolbox.Authenticator.java
com.android.volley.toolbox.BasicNetwork.java
com.android.volley.toolbox.ByteArrayPool.java
com.android.volley.toolbox.ClearCacheRequest.java
com.android.volley.toolbox.DiskBasedCache.java
com.android.volley.toolbox.HttpClientStack.java
com.android.volley.toolbox.HttpHeaderParser.java
com.android.volley.toolbox.HttpStack.java
com.android.volley.toolbox.HurlStack.java
com.android.volley.toolbox.ImageLoader.java
com.android.volley.toolbox.ImageRequest.java
com.android.volley.toolbox.JsonArrayRequest.java
com.android.volley.toolbox.JsonObjectRequest.java
com.android.volley.toolbox.JsonRequest.java
com.android.volley.toolbox.NetworkImageView.java
com.android.volley.toolbox.NoCache.java
com.android.volley.toolbox.PoolingByteArrayOutputStream.java
com.android.volley.toolbox.RequestFuture.java
com.android.volley.toolbox.StringRequest.java
com.android.volley.toolbox.Volley.java
io.bxbxbai.androiddemos.AppController.java
io.bxbxbai.androiddemos.ApplicationTest.java
io.bxbxbai.androiddemos.MainActivity.java
io.bxbxbai.androiddemos.activity.BaseActivity.java
io.bxbxbai.androiddemos.activity.FeedListActivity.java
io.bxbxbai.androiddemos.adapter.FeedListAdapter.java
io.bxbxbai.androiddemos.adapter.SimpleBaseAdapter.java
io.bxbxbai.androiddemos.data.FeedItem.java
io.bxbxbai.androiddemos.data.FeedResult.java
io.bxbxbai.androiddemos.utils.BitmapUtils.java
io.bxbxbai.androiddemos.utils.GsonRequest.java
io.bxbxbai.androiddemos.utils.ListViewUtils.java
io.bxbxbai.androiddemos.utils.LruBitmapCache.java
io.bxbxbai.androiddemos.utils.RequestManager.java
io.bxbxbai.androiddemos.utils.TaskUtils.java
io.bxbxbai.androiddemos.utils.ToastUtils.java
io.bxbxbai.androiddemos.utils.VersionUtils.java
io.bxbxbai.androiddemos.utils.ViewFinder.java
io.bxbxbai.androiddemos.view.FeedImageView.java