List of usage examples for android.webkit WebView setTag
public void setTag(int key, final Object tag)
From source file:com.benefit.buy.library.http.query.AbstractAQuery.java
/** * Clear a view. Applies to ImageView, WebView, and TextView. * @return self//from w ww . ja va 2s . c om */ 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
/** * Clear a view. Applies to ImageView, WebView, and TextView. * * @return self//ww w . j a v a 2 s.c o 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
/** * Clear a view. Applies to ImageView, WebView, and TextView. * * @return self/* w w w . j a v a 2 s . c om*/ */ public T 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(); }