From: Petru Trimbitas Date: Sat, 15 Jun 2013 15:26:59 +0000 (+0300) Subject: Add refresh to event_list X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=c35783fd5392a9272936d9afad13365b7e6ca780;p=unical.git Add refresh to event_list --- diff --git a/res/menu/event_list.xml b/res/menu/event_list.xml new file mode 100644 index 0000000..8d1346e --- /dev/null +++ b/res/menu/event_list.xml @@ -0,0 +1,14 @@ + + + + + + + + + diff --git a/res/menu/main.xml b/res/menu/main.xml deleted file mode 100644 index 757150c..0000000 --- a/res/menu/main.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 9c1ca70..6c0ba07 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -45,6 +45,7 @@ months year years + Refresh Day diff --git a/src/ro/ieval/unical/EventListActivity.java b/src/ro/ieval/unical/EventListActivity.java index b8c81ab..d864079 100644 --- a/src/ro/ieval/unical/EventListActivity.java +++ b/src/ro/ieval/unical/EventListActivity.java @@ -68,7 +68,7 @@ public class EventListActivity extends Activity { @Override public boolean onCreateOptionsMenu(final Menu menu) { final MenuInflater inflater = getMenuInflater(); - inflater.inflate(R.menu.main, menu); + inflater.inflate(R.menu.event_list, menu); return true; } @@ -79,6 +79,9 @@ public class EventListActivity extends Activity { final Intent i=new Intent(this,AddEventActivity.class); startActivity(i); return true; + case R.id.refresh: + displayEvents(); + return true; default: return false; }