title: how to update all background images in a custom view class
body: <p>I have a custom view class called Avatar.  Is it possible to write a static function that when it is called it changes all current objects from that class to have a specific picture?  </p>
  
  <p>Here is my Avatar class</p>
  
  <pre><code>public class Avatar extends RoundedImageView {
  
  private static String avatarURL;
  private Context context;
  
  public Avatar(Context context) {
      super(context);
      init();
  }
  
  public Avatar(Context context, AttributeSet attrs) {
      super(context, attrs);
      this.context = context;
      init();
  }
  
  public Avatar(Context context, AttributeSet attrs, int defStyle) {
      super(context, attrs, defStyle);
      this.context = context;
      init();
  }
  
  private void init(){
      Picasso.with(context).load(avatarURL).into(this);
  }
  
  public static void updatePicture(String url){
      avatarURL = url;
      //update all avatars
  }
  
  }
  </code></pre>