]> iEval git - unical.git/blob - src/ro/ieval/unical/displayEventActivity.java
fb76934a7411bc4ed37c79a703ef6148a291cce9
[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 public static final String EXTRA_EVENT = "event";
13
14 @Override
15 protected void onCreate(Bundle savedInstanceState) {
16 super.onCreate(savedInstanceState);
17 final Event e=getIntent().getParcelableExtra(EXTRA_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.dtstart)).toString());
25 description.setText(e.description);
26 location.setText(e.eventLocation);
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.044497 seconds and 4 git commands to generate.