title: Resize Drawable in Android
body: <p>I am setting a drawable for a progress dialog (<code>pbarDialog</code>) but my issue is I want to resize the drawable each time but can't figure out how.</p>
  
  <p>Here is some code:</p>
  
  <pre><code>Handler progressHandler = new Handler() {
  
      public void handleMessage(Message msg) {
          switch (msg.what) {
              // some more code
              case UPDATE_PBAR:
                  pbarDialog.setIcon(mAppIcon);
                  pbarDialog.setMessage(mPbarMsg);
                  pbarDialog.incrementProgressBy(mIncrement+1);
                  break;
          }
      }
  };
  
  pbarDialog.show();
  
  Thread myThread = new Thread(new Runnable() {
  
      public void run() {
          // some code
          for (int i = 0; i &lt; mApps.size(); i++) {
              mAppIcon = mAdapter.getIcons().get(mApps.get(i).getPackageName());
              // need to resize drawable here
              progressHandler.sendEmptyMessage(UPDATE_PBAR);
          }
          handler.sendEmptyMessage(DISMISS_PBAR);
      }
  
  });
  
  myThread.start();
  </code></pre>