You can set it from the xml by using android:background="@drawable/photo_name". Just be sure to add the png file to the res/drawables directory of your project.
You can also do it within the java but I'd have to look up how to do so. I believe you would have to create a handler for the view and the call is something like view.setBackgroundResource(R.drawable.photo_name);