Code example for View

Methods: getTag

0
         */ 
        @Override 
        public void bindView(View view, Context context, Cursor cursor) {
             
            // Gets a handle to the View 
            PhotoView localImageDownloaderView = (PhotoView) view.getTag();
             
            // Converts the URL string to a URL and tries to retrieve the picture 
            try { 
                // Gets the URL 
                URL localURL =
                        new URL(
                            cursor.getString(IMAGE_THUMBURL_CURSOR_INDEX)
                        ) 
                ; 
                /* 
                 * Invokes setImageURL for the View. If the image isn't already available, this 
                 * will download and decode it. 
                 */ 
                localImageDownloaderView.setImageURL(
                            localURL, true, PhotoThumbnailFragment.this.mEmptyDrawable);