]> iEval git - unical.git/blobdiff - src/ro/ieval/unical/LoginActivity.java
Clean up the whole tree
[unical.git] / src / ro / ieval / unical / LoginActivity.java
diff --git a/src/ro/ieval/unical/LoginActivity.java b/src/ro/ieval/unical/LoginActivity.java
new file mode 100644 (file)
index 0000000..8c958be
--- /dev/null
@@ -0,0 +1,29 @@
+package ro.ieval.unical;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.view.View;
+import android.widget.Button;
+import android.widget.EditText;
+
+public final class LoginActivity extends Activity {
+       
+       @Override
+       protected void onCreate(final Bundle savedInstanceState) {
+               super.onCreate(savedInstanceState);
+               setContentView(R.layout.login);
+               setTitle(R.string.log_in);
+
+               final EditText user=(EditText) findViewById(R.id.editText1);
+               final EditText pass=(EditText) findViewById(R.id.editText2);
+               final Button logIn=(Button) findViewById(R.id.button1);
+       
+               logIn.setOnClickListener(new View.OnClickListener() {
+                       
+                       @Override
+                       public void onClick(final View v) {
+                               setContentView(R.layout.event_view);
+                       }
+               });
+       }
+}
This page took 0.025247 seconds and 4 git commands to generate.