You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to show the whole event's details that are in the BaseCalendarEvent in an Alert Dialog when i click on a particular event but when I try to implement the onEventSelected, it only uses a CalendarEvent variable so I cannot access the even'ts description
Here is the code
override fun onEventSelected(event: CalendarEvent?) {
Toast.makeText(getApplicationContext(),"EVENT SELECTED",Toast.LENGTH_SHORT);
val alertDialog = AlertDialog.Builder(this)
//set icon
.setIcon(android.R.drawable.ic_menu_agenda)
//set title
.setTitle(event!!.title)
//set message
.setMessage("event.description")
//set positive button
.setPositiveButton("Okay", DialogInterface.OnClickListener { dialog, i ->
//set what would happen when positive button is clicked
finish()
})
.show()
}
Is there a way to get the event's description?
Your help would be much appreciated
The text was updated successfully, but these errors were encountered:
I want to show the whole event's details that are in the BaseCalendarEvent in an Alert Dialog when i click on a particular event but when I try to implement the onEventSelected, it only uses a CalendarEvent variable so I cannot access the even'ts description
Here is the code
Is there a way to get the event's description?
Your help would be much appreciated
The text was updated successfully, but these errors were encountered: