title: Custom Drawable draw() method not being called (Android)
body: <p>For my project I am downloading images from the web, so I have implemented a simple class for it:</p>
  
  <pre><code>@SuppressWarnings("deprecation")
  public class DynamicDrawable extends BitmapDrawable{
      private  Drawable drawable;
  
      @Override
      public void draw(Canvas canvas) {
          // override the draw to facilitate refresh function later
          if(drawable != null) {
              drawable.draw(canvas);
          }
          Log.d("dnull", String.valueOf(drawable == null));
      }
      protected void setDrawable(Drawable drawable){
          this.drawable = drawable;
      }
  }
  </code></pre>
  
  <p>There is a handler that gets and parses the image, adds it asynchronously to the class and invalidates the view, which I have checked and works fine. The drawable variable is not null. 
  It is then added to an ImageView. However, the draw() method is never called. Not even when it is first added. Here is the code where the image enters the view:</p>
  
  <pre><code>@Override
  public View getView(int position, View convertView, ViewGroup parent){
  View view = convertView;
  
  if(view == null){
      view = inflater.inflate(R.layout.view_concerteposter, parent,false);
  }
  
  ConcertPoster poster = posters.get(position);
  
  ImageView iconView = (ImageView)view.findViewById(R.id.ticketBuy_icon);
  TextView titleView = (TextView)view.findViewById(R.id.ticketBuy_name);
  TextView dateView = (TextView)view.findViewById(R.id.ticketBuy_date);
  
  iconView.setImageDrawable(poster.getImage());
  System.out.println(poster.getImage());
  titleView.setText(poster.getTitle());
  dateView.setText(poster.getDate());
  
  return view;
  }
  </code></pre>
  
  <p>Yes, I have checked the objects, they are all correct and have the correct drawables in them. </p>
  
  <p>Any help would be appreciated.</p>