Android Open Source - StoichiometryForDummies Intro Fragment






From Project

Back to project page StoichiometryForDummies.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project StoichiometryForDummies 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

package com.noahl98.perGProject;
/*from w ww.j  a  v  a 2 s  . c  o  m*/
import android.R.anim;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.TextView;

public class IntroFragment extends FragmentActivity{
  
  TextView introTitle;

    //Intro Page
  @Override
  public void onCreate(Bundle arg0){
    super.onCreate(arg0);
    setContentView(R.layout.intro_fragment_layout);
    
    //Overrides incoming transition
    overridePendingTransition(R.anim.slide_in_left, R.anim.slide_out_left);
    
    //adds up navigation
    getActionBar().setDisplayHomeAsUpEnabled(true);
    
    //finds the view
    introTitle = (TextView) findViewById(R.id.intro_title);
    //changes the font
    introTitle.setTypeface(LauncherMenu.coolvetica);
  }
  
  @Override
  public void onPause(){
    super.onPause();
        //changes the animation when the user navigates away from the page
    overridePendingTransition(anim.slide_in_left, anim.slide_out_right);
  }
}




Java Source Code List

com.noahl98.perGProject.BalancingFragment.java
com.noahl98.perGProject.BuildConfig.java
com.noahl98.perGProject.FontAdapter.java
com.noahl98.perGProject.IntroFragment.java
com.noahl98.perGProject.LauncherMenu.java
com.noahl98.perGProject.LinksFragment.java
com.noahl98.perGProject.MainMenuActivity.java
com.noahl98.perGProject.MoleFragment.java
com.noahl98.perGProject.RatioFragment.java
com.noahl98.perGProject.ReagentFragment.java
com.noahl98.perGProject.SignificantFragment.java
com.noahl98.perGProject.YieldFragment.java