add a menu button for Go to today

This commit is contained in:
tibbi 2017-02-19 20:28:01 +01:00
parent 1ddce648a2
commit 644a9fbd03
22 changed files with 25 additions and 0 deletions

View File

@ -106,6 +106,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.change_view -> showViewDialog()
R.id.go_to_today -> goToToday()
R.id.filter -> showFilterDialog()
R.id.import_events -> tryImportEvents()
R.id.settings -> launchSettings()
@ -129,6 +130,10 @@ class MainActivity : SimpleActivity(), NavigationListener {
}
}
private fun goToToday() {
}
private fun showFilterDialog() {
FilterEventTypesDialog(this) {
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

View File

@ -6,6 +6,11 @@
android:icon="@drawable/ic_change_view"
android:title="@string/change_view"
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
android:id="@+id/filter"
android:icon="@drawable/ic_filter"

View File

@ -9,6 +9,7 @@
<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="details">Detalles</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>

View File

@ -9,6 +9,7 @@
<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="details">Details</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Monats Kalender</string>

View File

@ -9,6 +9,7 @@
<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="details">Detalles</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>

View File

@ -9,6 +9,7 @@
<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="details">Détails</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendrier mensuel</string>

View File

@ -9,6 +9,7 @@
<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="details">Detalles</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>

View File

@ -9,6 +9,7 @@
<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="details">विवरण</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>

View File

@ -9,6 +9,7 @@
<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="details">Részletek</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Havi naptár</string>

View File

@ -9,6 +9,7 @@
<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="details">Dettagli</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>

View File

@ -9,6 +9,7 @@
<string name="no_upcoming_events">נראה שאין לך אירועים בזמן הקרוב.</string>
<string name="add_some_events">ניתן להוסיף אירועים בעזרת כפתור הפלוס למטה.</string>
<string name="details">פרטים</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">לוח השנה חודשית</string>

View File

@ -9,6 +9,7 @@
<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="details">詳細</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">カレンダー月</string>

View File

@ -9,6 +9,7 @@
<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="details">Detalhes</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendário mensal</string>

View File

@ -9,6 +9,7 @@
<string name="no_upcoming_events">Похоже у вас нет пердстоящих событий.</string>
<string name="add_some_events">Вы можете их добавить, нажав на кнопку с плюсом внизу.</string>
<string name="details">Подробности</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Календарь на месяц</string>

View File

@ -9,6 +9,7 @@
<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="details">Detaily</string>
<string name="go_to_today">Prejsť na dnešok</string>
<!-- Widget titles -->
<string name="widget_monthly">Kalendár mesačný</string>

View File

@ -9,6 +9,7 @@
<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="details">Detaljer</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Kalender månadsvis</string>

View File

@ -9,6 +9,7 @@
<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="details">Details</string>
<string name="go_to_today">Go to today</string>
<!-- Widget titles -->
<string name="widget_monthly">Calendar monthly</string>