I finally found it. This is all I was looking for:
ImageView green = new ImageView(this);
green.setImageResource(R.drawable.green);
Thanks,
Tobiah
On 03/29/2011 11:08 AM, Raghav Sood wrote:
You could load it through xml easily enough:
<ImageView
android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/image1"
android:layout_x="90px"
android:layout_y="122px"
>
</ImageView>
Just set your content view to the default xml file
--
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en