super.onCreate(icicle);
setContentView(R.layout.text_switcher_1);
mSwitcher = (TextSwitcher) findViewById(R.id.switcher);
mSwitcher.setFactory(this);
Animation in = AnimationUtils.loadAnimation(this,
android.R.anim.fade_in);
Animation out = AnimationUtils.loadAnimation(this,
android.R.anim.fade_out);
mSwitcher.setInAnimation(in);
mSwitcher.setOutAnimation(out);
mCalendar = Calendar.getInstance();
Button nextButton = (Button) findViewById(R.id.next);
nextButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
showTime();
}
});
showTime();