Lines Matching refs:ImageView

55 android.widget.ImageView} using {@link android.os.AsyncTask} and <a
62 private final WeakReference&lt;ImageView&gt; imageViewReference;
65 public BitmapWorkerTask(ImageView imageView) {
66 // Use a WeakReference to ensure the ImageView can be garbage collected
67 imageViewReference = new WeakReference&lt;ImageView&gt;(imageView);
77 // Once complete, see if ImageView is still around and set bitmap.
81 final ImageView imageView = imageViewReference.get();
90 <p>The {@link java.lang.ref.WeakReference} to the {@link android.widget.ImageView} ensures that the
91 {@link android.os.AsyncTask} does not prevent the {@link android.widget.ImageView} and anything it
92 references from being garbage collected. There’s no guarantee the {@link android.widget.ImageView}
94 android.os.AsyncTask#onPostExecute(Result) onPostExecute()}. The {@link android.widget.ImageView}
101 public void loadBitmap(int resId, ImageView imageView) {
120 {@link android.widget.ImageView} stores a reference to the most recent {@link android.os.AsyncTask}
126 that a placeholder image can be displayed in the {@link android.widget.ImageView} while the task
149 android.widget.ImageView}:</p>
152 public void loadBitmap(int resId, ImageView imageView) {
164 running task is already associated with the {@link android.widget.ImageView}. If so, it attempts to
170 public static boolean cancelPotentialWork(int data, ImageView imageView) {
184 // No task associated with the ImageView, or an existing task was cancelled
190 with a particular {@link android.widget.ImageView}:</p>
193 private static BitmapWorkerTask getBitmapWorkerTask(ImageView imageView) {
207 one associated with the {@link android.widget.ImageView}:</p>
221 final ImageView imageView = imageViewReference.get();
235 android.widget.ImageView}. For example, in a {@link android.widget.GridView} implementation this