Android Open Source - StoichiometryForDummies Main Menu Activity






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;
//  w  ww  .  java2s.  co  m
import java.util.ArrayList;
import java.util.Arrays;

import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

public class MainMenuActivity extends FragmentActivity{

  private TextView text1;
  private TextView text2;
  private TextView getStarted;

  private RelativeLayout titlePage;

  public static ListView listview1;
  
  public static ArrayAdapter<String> listAdapter;

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_fullscreen);

    //finds textviews
    text1= (TextView) findViewById(R.id.text1);
    text2= (TextView) findViewById(R.id.text2);
    getStarted= (TextView) findViewById(R.id.get_started);

    //change fonts
    Typeface typface1 = Typeface.createFromAsset(this.getAssets(), "fonts/StoneBird.ttf");
    text2.setTypeface(typface1);

    Typeface typeface2 = Typeface.createFromAsset(this.getAssets(), "fonts/coolvetica_rg.ttf");
    getStarted.setTypeface(typeface2);


    //define other items
    titlePage = (RelativeLayout) findViewById(R.id.title_page);

    //sets onclicklistener for title page
    titlePage.setOnClickListener(new OnClickListener(){

      @Override
      public void onClick(View view) {
        // TODO Auto-generated method stub
        Intent intent = new Intent(MainMenuActivity.this, LauncherMenu.class);
        startActivity(intent);
      }
    });
  }
}




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