List of usage examples for android.widget ImageView setTag
public void setTag(int key, final Object tag)
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
/** * Set the image of an ImageView./*from w w w .j a v a 2s .c om*/ * @param drawable the drawable * @return self * @see testImage2 */ public T image(Drawable drawable) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(Constants.TAG_URL, null); iv.setImageDrawable(drawable); } return self(); }
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
/** * Set the image of an ImageView./*from w ww.j av a 2s . co m*/ * @param bm Bitmap * @return self * @see testImage3 */ public T image(Bitmap bm) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(Constants.TAG_URL, null); iv.setImageBitmap(bm); } return self(); }
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
/** * Set the image of an ImageView./*from w w w . ja v a 2 s . c om*/ * @param resid the resource id * @return self * @see testImage1 */ public T image(int resid) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(Constants.TAG_URL, null); if (resid == 0) { iv.setImageBitmap(null); } else { iv.setImageResource(resid); } } return self(); }
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
/** * Clear a view. Applies to ImageView, WebView, and TextView. * @return self// ww w .j av a 2 s . c o m */ public T clear() { if (view != null) { if (view instanceof ImageView) { ImageView iv = ((ImageView) view); iv.setImageBitmap(null); iv.setTag(Constants.TAG_URL, null); } else if (view instanceof WebView) { WebView wv = ((WebView) view); wv.stopLoading(); wv.clearView(); wv.setTag(Constants.TAG_URL, null); } else if (view instanceof TextView) { TextView tv = ((TextView) view); tv.setText(""); } } return self(); }
From source file:com.androidquery.AQuery.java
/** * Set the image of an ImageView./*from ww w . j av a2s . c o m*/ * * @param drawable the drawable * @return self * * @see testImage2 * */ public AQuery image(Drawable drawable) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(AQuery.TAG_URL, null); iv.setImageDrawable(drawable); } return self(); }
From source file:com.androidquery.AQuery.java
/** * Set the image of an ImageView./*from w w w . ja v a 2 s .co m*/ * * @param bm Bitmap * @return self * * @see testImage3 */ public AQuery image(Bitmap bm) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(AQuery.TAG_URL, null); iv.setImageBitmap(bm); } return self(); }
From source file:com.androidquery.AQuery.java
/** * Set the image of an ImageView.// w w w . ja v a 2s .co m * * @param resid the resource id * @return self * * @see testImage1 */ public AQuery image(int resid) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(AQuery.TAG_URL, null); if (resid == 0) { iv.setImageBitmap(null); } else { iv.setImageResource(resid); } } return self(); }
From source file:com.androidquery.AQuery.java
/** * Clear a view. Applies to ImageView, WebView, and TextView. * * @return self/*w w w . j a va 2 s . co m*/ */ public AQuery clear() { if (view != null) { if (view instanceof ImageView) { ImageView iv = ((ImageView) view); iv.setImageBitmap(null); iv.setTag(AQuery.TAG_URL, null); } else if (view instanceof WebView) { WebView wv = ((WebView) view); wv.stopLoading(); wv.clearView(); wv.setTag(AQuery.TAG_URL, null); } else if (view instanceof TextView) { TextView tv = ((TextView) view); tv.setText(""); } } return self(); }
From source file:com.androidquery.AbstractAQuery.java
/** * Set the image of an ImageView./*from ww w . ja va2s. c o m*/ * * @param drawable the drawable * @return self * * @see testImage2 * */ public T image(Drawable drawable) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(AQuery.TAG_URL, null); iv.setImageDrawable(drawable); } return self(); }
From source file:com.androidquery.AbstractAQuery.java
/** * Set the image of an ImageView.//from www . j a v a 2s . c o m * * @param bm Bitmap * @return self * * @see testImage3 */ public T image(Bitmap bm) { if (view instanceof ImageView) { ImageView iv = (ImageView) view; iv.setTag(AQuery.TAG_URL, null); iv.setImageBitmap(bm); } return self(); }