]> iEval git - unical.git/blob - src/ro/ieval/unical/displayEventActivity.java
b6ded5dab82fded73105e2c3a7b1020d39d8460f
[unical.git] / src / ro / ieval / unical / displayEventActivity.java
1 package ro.ieval.unical;
2
3 import java.util.Date;
4
5 import android.app.Activity;
6 import android.os.Bundle;
7 import android.view.Menu;
8 import android.view.MenuInflater;
9 import android.widget.TextView;
10
11 public class displayEventActivity extends Activity {
12 @Override
13 protected void onCreate(Bundle savedInstanceState) {
14 // TODO Auto-generated method stub
15 super.onCreate(savedInstanceState);
16 //aici iei parametru
17 Event e=new Event();
18 setContentView(R.layout.eventview);
19 final TextView eventTitle= (TextView) findViewById(R.id.eventTitle);
20 final TextView date=(TextView) findViewById(R.id.date);
21 final TextView description=(TextView) findViewById(R.id.description);
22 final TextView location= (TextView) findViewById(R.id.location);
23 eventTitle.setText(e.title);
24 date.setText((new Date(e.date)).toString());
25 description.setText(e.description);
26 location.setText(e.location);
27 }
28
29 @Override
30 public boolean onCreateOptionsMenu(Menu menu) {
31 // TODO Auto-generated method stub
32 // nu stiu cum sa pun delete in loc de new event
33 MenuInflater inflater = getMenuInflater();
34 inflater.inflate(R.menu.options, menu);
35 return true;
36 }
37 }
This page took 0.045818 seconds and 4 git commands to generate.