add a menu button for Go to today
This commit is contained in:
parent
1ddce648a2
commit
644a9fbd03
|
@ -106,6 +106,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
R.id.change_view -> showViewDialog()
|
R.id.change_view -> showViewDialog()
|
||||||
|
R.id.go_to_today -> goToToday()
|
||||||
R.id.filter -> showFilterDialog()
|
R.id.filter -> showFilterDialog()
|
||||||
R.id.import_events -> tryImportEvents()
|
R.id.import_events -> tryImportEvents()
|
||||||
R.id.settings -> launchSettings()
|
R.id.settings -> launchSettings()
|
||||||
|
@ -129,6 +130,10 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private fun goToToday() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private fun showFilterDialog() {
|
private fun showFilterDialog() {
|
||||||
FilterEventTypesDialog(this) {
|
FilterEventTypesDialog(this) {
|
||||||
refreshViewPager()
|
refreshViewPager()
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 197 B |
Binary file not shown.
After Width: | Height: | Size: 133 B |
Binary file not shown.
After Width: | Height: | Size: 191 B |
Binary file not shown.
After Width: | Height: | Size: 257 B |
Binary file not shown.
After Width: | Height: | Size: 328 B |
|
@ -6,6 +6,11 @@
|
||||||
android:icon="@drawable/ic_change_view"
|
android:icon="@drawable/ic_change_view"
|
||||||
android:title="@string/change_view"
|
android:title="@string/change_view"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/go_to_today"
|
||||||
|
android:icon="@drawable/ic_today"
|
||||||
|
android:title="@string/go_to_today"
|
||||||
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/filter"
|
android:id="@+id/filter"
|
||||||
android:icon="@drawable/ic_filter"
|
android:icon="@drawable/ic_filter"
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Detalles</string>
|
<string name="details">Detalles</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Sieht aus als wäre dein Kalender leer.</string>
|
<string name="no_upcoming_events">Sieht aus als wäre dein Kalender leer.</string>
|
||||||
<string name="add_some_events">Du kannst neue Termine mit dem Plus Button unten rechts erstellen.</string>
|
<string name="add_some_events">Du kannst neue Termine mit dem Plus Button unten rechts erstellen.</string>
|
||||||
<string name="details">Details</string>
|
<string name="details">Details</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Monats Kalender</string>
|
<string name="widget_monthly">Monats Kalender</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Detalles</string>
|
<string name="details">Detalles</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Il semblerait que vous n\'ayez aucun événement à venir.</string>
|
<string name="no_upcoming_events">Il semblerait que vous n\'ayez aucun événement à venir.</string>
|
||||||
<string name="add_some_events">Vous pouvez ajouter des évènements avec le bouton Plus en bas.</string>
|
<string name="add_some_events">Vous pouvez ajouter des évènements avec le bouton Plus en bas.</string>
|
||||||
<string name="details">Détails</string>
|
<string name="details">Détails</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendrier mensuel</string>
|
<string name="widget_monthly">Calendrier mensuel</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Detalles</string>
|
<string name="details">Detalles</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">विवरण</string>
|
<string name="details">विवरण</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Részletek</string>
|
<string name="details">Részletek</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Havi naptár</string>
|
<string name="widget_monthly">Havi naptár</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Dettagli</string>
|
<string name="details">Dettagli</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">נראה שאין לך אירועים בזמן הקרוב.</string>
|
<string name="no_upcoming_events">נראה שאין לך אירועים בזמן הקרוב.</string>
|
||||||
<string name="add_some_events">ניתן להוסיף אירועים בעזרת כפתור הפלוס למטה.</string>
|
<string name="add_some_events">ניתן להוסיף אירועים בעזרת כפתור הפלוס למטה.</string>
|
||||||
<string name="details">פרטים</string>
|
<string name="details">פרטים</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">לוח השנה חודשית</string>
|
<string name="widget_monthly">לוח השנה חודשית</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">詳細</string>
|
<string name="details">詳細</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">カレンダー月</string>
|
<string name="widget_monthly">カレンダー月</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Parece que você não tem eventos para breve.</string>
|
<string name="no_upcoming_events">Parece que você não tem eventos para breve.</string>
|
||||||
<string name="add_some_events">Pode adicionar um evento através do botão existente na base do ecrã.</string>
|
<string name="add_some_events">Pode adicionar um evento através do botão existente na base do ecrã.</string>
|
||||||
<string name="details">Detalhes</string>
|
<string name="details">Detalhes</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendário mensal</string>
|
<string name="widget_monthly">Calendário mensal</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Похоже у вас нет пердстоящих событий.</string>
|
<string name="no_upcoming_events">Похоже у вас нет пердстоящих событий.</string>
|
||||||
<string name="add_some_events">Вы можете их добавить, нажав на кнопку с плюсом внизу.</string>
|
<string name="add_some_events">Вы можете их добавить, нажав на кнопку с плюсом внизу.</string>
|
||||||
<string name="details">Подробности</string>
|
<string name="details">Подробности</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Календарь на месяц</string>
|
<string name="widget_monthly">Календарь на месяц</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Nemáte žiadne naplánované udalosti.</string>
|
<string name="no_upcoming_events">Nemáte žiadne naplánované udalosti.</string>
|
||||||
<string name="add_some_events">Viete ich pridať pomocou tlačidla Plus v pravom dolnom rohu.</string>
|
<string name="add_some_events">Viete ich pridať pomocou tlačidla Plus v pravom dolnom rohu.</string>
|
||||||
<string name="details">Detaily</string>
|
<string name="details">Detaily</string>
|
||||||
|
<string name="go_to_today">Prejsť na dnešok</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Kalendár mesačný</string>
|
<string name="widget_monthly">Kalendár mesačný</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Det ser ut som att du inte har några kommandechändelser.</string>
|
<string name="no_upcoming_events">Det ser ut som att du inte har några kommandechändelser.</string>
|
||||||
<string name="add_some_events">Du kan lägga till händelser via plus-knappen som du ser längst ner.</string>
|
<string name="add_some_events">Du kan lägga till händelser via plus-knappen som du ser längst ner.</string>
|
||||||
<string name="details">Detaljer</string>
|
<string name="details">Detaljer</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Kalender månadsvis</string>
|
<string name="widget_monthly">Kalender månadsvis</string>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
<string name="no_upcoming_events">Seems like you don\'t have any upcoming events.</string>
|
||||||
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
<string name="add_some_events">You can add some with the Plus button at the bottom.</string>
|
||||||
<string name="details">Details</string>
|
<string name="details">Details</string>
|
||||||
|
<string name="go_to_today">Go to today</string>
|
||||||
|
|
||||||
<!-- Widget titles -->
|
<!-- Widget titles -->
|
||||||
<string name="widget_monthly">Calendar monthly</string>
|
<string name="widget_monthly">Calendar monthly</string>
|
||||||
|
|
Loading…
Reference in New Issue