Ejemplo n.º 1
0
        /// <summary>
        /// 防止图片错位
        /// </summary>
        /// <returns><c>true</c>, if view reused was imaged, <c>false</c> otherwise.</returns>
        /// <param name="photoToLoad">Photo to load.</param>
        public bool imageViewReused(PhotoToLoad photoToLoad)
        {
            var tag = (string)imageViews.Get(photoToLoad.imageView);

            if (tag == null || !tag.Equals(photoToLoad.url))
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        private void QueuePhoto(string url, ImageView imageView)
        {
            PhotoToLoad p = new PhotoToLoad(url, imageView);

            executorService.Submit(new PhotosLoader(p, this));
        }
Ejemplo n.º 3
0
 public PhotosLoader(PhotoToLoad photoToLoad, ImageLoader _imageLoader)
 {
     this.photoToLoad = photoToLoad;
     imageLoader      = _imageLoader;
 }
Ejemplo n.º 4
0
 public BitmapDisplayer(Bitmap b, PhotoToLoad p, ImageLoader _imageLoader)
 {
     bitmap      = b;
     photoToLoad = p;
     imageLoader = _imageLoader;
 }
Ejemplo n.º 5
0
		private void QueuePhoto(string url, ImageView imageView)
		{
			PhotoToLoad p=new PhotoToLoad(url, imageView);
			executorService.Submit(new PhotosLoader(p,this));
		}
Ejemplo n.º 6
0
		public	PhotosLoader(PhotoToLoad photoToLoad,ImageLoader _imageLoader){
			this.photoToLoad=photoToLoad;
			imageLoader = _imageLoader;
		}
Ejemplo n.º 7
0
		public BitmapDisplayer(Bitmap b, PhotoToLoad p,ImageLoader _imageLoader){
			bitmap=b;
			photoToLoad=p;
			imageLoader = _imageLoader;
		}
Ejemplo n.º 8
0
		/// <summary>
		/// 防止图片错位
		/// </summary>
		/// <returns><c>true</c>, if view reused was imaged, <c>false</c> otherwise.</returns>
		/// <param name="photoToLoad">Photo to load.</param>
		public	bool imageViewReused(PhotoToLoad photoToLoad){
			var tag=(string)imageViews.Get(photoToLoad.imageView);
			if(tag==null ||!tag.Equals(photoToLoad.url))
				return true;
			return false;
		}