Back to project page StoichiometryForDummies.
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.
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); } }); } }