Code example for ImageView

Methods: setImageResourcesetImageURI

0
   * @param value the value retrieved from the cursor 
   */ 
  @Implementation 
  public void setViewImage(ImageView v, String value) {
    try { 
      v.setImageResource(Integer.parseInt(value));
    } catch (NumberFormatException nfe) {
      v.setImageURI(Uri.parse(value));
    } 
  } 
 
  /** 
   * Called by bindView() to set the text for a TextView but only if 
   * there is no existing ViewBinder or if the existing ViewBinder cannot 
   * handle binding to an TextView. 
   * 
   * Intended to be overridden by Adapters that need to filter strings 
   * retrieved from the database. 
   * 
   * @param v TextView to receive text 
Stop searching for code, let great code find you!  Add Codota to your java IDE