layout - android - imageView - set non-resource image programatically -


i need develop example:

<framelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent">      <imageview           android:layout_width="fill_parent"          android:layout_height="fill_parent"           android:scaletype="center"         android:src="@drawable/golden_gate" />      <textview         android:layout_width="wrap_content"          android:layout_height="wrap_content"          android:layout_marginbottom="20dip"         android:layout_gravity="center_horizontal|bottom"          android:padding="12dip"          android:background="#aa000000"         android:textcolor="#ffffffff"          android:text="golden gate" />  </framelayout> 

but since imageview read internet (thru picasso), i'll need set image resource programatically. android:src="@drawable/golden_gate" useless me. ideas? thanks

picasso placeholder option should let assign placeholder image, displayed until actual image downloaded network

http://square.github.io/picasso/