Back to project page timeflash.
The source code is released under:
Apache License
If you think the Android project timeflash 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.derlethtully.timeflash; /* w ww .j av a 2s .com*/ import android.os.Bundle; import android.app.Activity; import android.view.Menu; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class AddVocabActivity extends Activity { EditText addVocabClue; EditText addVocabAnswer; Button addVocabSaveB; Button addVocabQuitB; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_vocab); /* addVocabClue = (EditText) findViewById(R.id.add_vocab_clue); addVocabAnswer = (EditText) findViewById(R.id.add_vocab_answer); addVocabSaveB = (Button) findViewById(R.id.add_vocab_b); addVocabSaveB.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { // Nothing at the moment, add the word to the vocabList eventually //Perhaps just the array? } }); addVocabQuitB = (Button) findViewById(R.id.add_vocab_quit_b); addVocabQuitB.setOnClickListener(new OnClickListener(){ @Override public void onClick(View v) { finish(); } }); */ } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.add_vocab, menu); return true; } }