]>
Commit | Line | Data |
---|---|---|
1 | package ro.ieval.unical; | |
2 | ||
3 | import android.app.Activity; | |
4 | import android.os.Bundle; | |
5 | import android.view.View; | |
6 | import android.widget.Button; | |
7 | ||
8 | public final class LoginActivity extends Activity { | |
9 | ||
10 | @Override | |
11 | protected void onCreate(final Bundle savedInstanceState) { | |
12 | super.onCreate(savedInstanceState); | |
13 | setContentView(R.layout.login); | |
14 | setTitle(R.string.log_in); | |
15 | ||
16 | //final EditText user=(EditText) findViewById(R.id.editText1); | |
17 | //final EditText pass=(EditText) findViewById(R.id.editText2); | |
18 | final Button logIn=(Button) findViewById(R.id.button1); | |
19 | ||
20 | logIn.setOnClickListener(new View.OnClickListener() { | |
21 | ||
22 | @Override | |
23 | public void onClick(final View v) { | |
24 | setContentView(R.layout.event_view); | |
25 | } | |
26 | }); | |
27 | } | |
28 | } |