Hi,
I have the following xml layout:

<android.pacman.com.PacManMainView
      android:id="@+id/pacman_main_view"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent">


       <ImageView android:id="@+id/pacAnim"
                        android:src="@drawable/pac02"
                        android:layout_width="20px"
                        android:layout_height="20px"/>
</android.pacman.com.PacManMainView>

PacManMainView extends SurfaceView. I can draw to this, it works OK.
However, when I attempt to get a reference to the ImageView like this:

@Override
public void surfaceCreated(SurfaceHolder holder) {
/* test reference to imageview
                ImageView pacImageV = (ImageView) findViewById(R.id.pacAnim);

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to