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