public class CalendarActivity
extends Activity
Modifier and Type | Field and Description |
---|---|
OnClickListener |
clickEvent
Listener for play/pause button.
|
OnClickListener |
editEvent
Called when the user the presses the "Edit" button for an existing alarm.
|
OnClickListener |
nextWeek
Called when the user press the '>>' button.
|
OnClickListener |
prevWeek
Called when the user press the '<<' button.
|
OnClickListener |
resetCalender
Resets the calendar to the current date.
|
Constructor and Description |
---|
CalendarActivity() |
Modifier and Type | Method and Description |
---|---|
void |
loadMoreAgenda(boolean thisWeek)
Loads 7 more days worth of events into the Agenda view
|
void |
onCreate(Bundle savedInstanceState)
Called when the activity is first created.
|
boolean |
onCreateOptionsMenu(Menu menu)
Called when it is time to create the menu.
|
boolean |
onKeyDown(int keyCode,
KeyEvent event)
Called when any key is pressed.
|
boolean |
onOptionsItemSelected(MenuItem item)
Called when an item in the menu is pressed.
|
void |
onResume()
Called when the activity is resumed, like when you return from another activity or also when it is first created.
|
void |
updateCalendar()
Updates the Weekly view after adjusting the week.
|
public OnClickListener nextWeek
public OnClickListener prevWeek
public OnClickListener resetCalender
public OnClickListener editEvent
public OnClickListener clickEvent
public void onCreate(Bundle savedInstanceState)
savedInstanceState
- Um I don't even know. Read the Android documentation.public boolean onKeyDown(int keyCode, KeyEvent event)
keyCode
- I dunnoevent
- I dunnopublic void onResume()
public boolean onCreateOptionsMenu(Menu menu)
menu
- Um, the menupublic boolean onOptionsItemSelected(MenuItem item)
item
- The menu item ID that was pressedpublic void updateCalendar()
public void loadMoreAgenda(boolean thisWeek)