Android Open Source - passby Launch Activity






From Project

Back to project page passby.

License

The source code is released under:

Copyright 2014 Firebase, https://www.firebase.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ?Software??...

If you think the Android project passby listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//#CSIT6000B#  Rio He       20227977 yheas@connect.ust.hk
//#CSIT6000B#  Cedric Liang 20220395 zliangag@connect.ust.hk
//#CSIT6000B#  Kevin Wang   20225577 zwangbo@connect.ust.hk 
package com.firebase.client;
/*from   w  ww  . ja  v a 2s  .  co  m*/
import com.firebase.androidchat.R;
import com.firebase.database.*;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.widget.ImageView;

public class LaunchActivity extends Activity {
    private ImageView welcomeImg = null;
  
  @SuppressLint("NewApi")
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_launch);
    getActionBar().hide();
    
    welcomeImg = (ImageView) this.findViewById(R.id.welcome_img);
        AlphaAnimation anima = new AlphaAnimation(0.3f, 1.0f);
        anima.setDuration(3000);// ????????????
        welcomeImg.startAnimation(anima);
        anima.setAnimationListener(new AnimationImpl());
  }
  
  private class AnimationImpl implements AnimationListener{

    @Override
    public void onAnimationStart(Animation animation) {
       welcomeImg.setBackgroundResource(R.drawable.start_bg);
    }

    @Override
    public void onAnimationEnd(Animation animation) {
      new DatabaseTask(LaunchActivity.this).execute();
      finish();
    }

    @Override
    public void onAnimationRepeat(Animation animation) {
      // TODO Auto-generated method stub
      
    }
  }
  
}




Java Source Code List

com.firebase.androidchat.ChatListAdapter.java
com.firebase.androidchat.Chat.java
com.firebase.androidchat.FirebaseListAdapter.java
com.firebase.androidchat.MainActivity.java
com.firebase.client.LaunchActivity.java
com.firebase.client.LocateActivity.java
com.firebase.client.SearchResultActivity.java
com.firebase.client.SettingActivity.java
com.firebase.database.DatabaseHelper.java
com.firebase.database.DatabaseManager.java
com.firebase.database.DatabaseTask.java
com.firebase.database.User.java