Totally understood.  Didn't mean to blame really. ;)

Is it possible that my splash ImageView (which is in a separate layout
from my FinderView), is getting displayed because I'm not closing the
ImageView or destorying it?  It seems that I am not destroying/closing
something correctly as when I flip the phone to landscape and back to
portrait (doing the destroys and onCreates) it works correctly.

Thanks for the reply!

Nathan

On Apr 7, 1:03 pm, Dianne Hackborn <[email protected]> wrote:
> ViewRoot.performTraversals() is the main engine of the view hierarchy,
> driving all layout and drawing in it.  Most things you see happening in your
> views are likely to come from there, but that doesn't mean it is to blame.
> :)
>
>
>
> On Wed, Apr 7, 2010 at 10:59 AM, McD <[email protected]> wrote:
> > Hey all,
>
> > Question on an oddity I am seeing.  I have an ImageView that I am
> > using to display a splash screen for a couple of seconds:
>
> > <ImageView android:id="@+id/splashsScreen"
> >                android:src="@drawable/logosplash"
> >                android:layout_width="fill_parent"
> >                android:layout_height="fill_parent">
> > </ImageView>
>
> > public class SplashScreen extends Activity {
> >        private static final int STOPSPLASH = 0;
> >        private static final long SPLASHTIME = 3000;
> >        private Handler splashScreenHandler = new Handler() {
> >                 �...@override
> >                  public void handleMessage(Message msg) {
> >                          switch (msg.what){
> >                          case STOPSPLASH:
> >                                  finish();
> >                                  break;
> >                          }
> >                          super.handleMessage(msg);
> >                  }
> >        };
> >       �...@override
> >        public void onCreate(Bundle icicle)
> >        {
> >            super.onCreate(icicle);
> >            setContentView(R.layout.splash);
> >            Message splashMsg = new Message();
> >            splashMsg.what = STOPSPLASH;
> >            splashScreenHandler.sendMessageDelayed(splashMsg, SPLASHTIME);
> >        }
>
> > }
>
> > This activity is started from my main activity.  Pretty simple, works
> > great.  The problem comes later when I try and display a overlay on
> > the screen in the form of a class that is extended from View:
>
> > public final class FinderView extends View {
> > ...
> > }
>
> > When I go to display that FinderView the splashscreen logo appears
> > instead.  If I change the screen orientation before I display the
> > FinderView, it'll work and display the overlay properly without the
> > splash screen.  Tracing it down It looks like
> > ViewRoot.performTransversals (line 1123 for version 2.1) is the part
> > that is displaying the old image.
>
> > Any thoughts?
>
> > --
> > 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]<android-developers%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> > To unsubscribe, reply using "remove me" as the subject.
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.

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