[android-developers] Can not add view to a ViewFlipper
I want to use a ViewFlipper to swith between a SurfaceView and a
GLSurfaceView. I create the ViewFlipper
in my Activity object with
ViewFlipper vf=new ViewFlipper(this);
I then try to add the views:
vf.addView(glSurfaceView, 0);
vf.addView(mLunarView, 1);
It crashes when I try to add mLunarView, which is the SurfaceView. No
information about why this happens or what caused the error is written
to Logcat. Why does this happen? mLunarView is created and is not
null. I have used this view as the content view when I didn't use the
ViewFlipper, so this view should work as it should.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home