[Solved] How to use a PSD in Android?


First, you need to export your PSD file to a PNG or similar format and put it in your drawable folder.
Do the following in your XML:

<ProgressBar
  android:id="@+id/progressBar1"
  style="?android:attr/progressBarStyleHorizontal"
  android:progressDrawable="@drawable/custom_progressbar"         
  android:layout_width="wrap_content"
  android:layout_height="wrap_content" />

At run time do the following

// Get the Drawable custom_progressbar                     
Drawable draw=res.getDrawable(R.drawable.custom_progressbar);
// set the drawable as progress drawable
progressBar.setProgressDrawable(draw)

From this answer

3

solved How to use a PSD in Android?