コード例 #1
0
 /**
  * Return {@link RequestCreator} for generic image request on specified path with no placeholder.
  *
  * <p><em>Note:</em> Target must be ImageView.
  */
 public static RequestCreator get(Context context, String path) {
   if (TextUtils.isEmpty(path)) path = null;
   return PicassoCompat.with(context).load(path);
 }
コード例 #2
0
 /**
  * Return {@link RequestCreator} for generic image request on specified file with no placeholder.
  *
  * <p><em>Note:</em> Target must be ImageView.
  */
 public static RequestCreator get(Context context, File file) {
   return PicassoCompat.with(context).load(file);
 }
コード例 #3
0
 /**
  * Return {@link RequestCreator} for generic image request on specified URI with no placeholder.
  *
  * <p><em>Note:</em> Target must be ImageView.
  */
 public static RequestCreator get(Context context, Uri uri) {
   return PicassoCompat.with(context).load(uri);
 }
コード例 #4
0
 /**
  * Return {@link RequestCreator} for generic image request on specified drawable resource ID with
  * no placeholder.
  *
  * <p><em>Note:</em> Target must be ImageView.
  */
 public static RequestCreator get(Context context, int resourceId) {
   return PicassoCompat.with(context).load(resourceId);
 }