add a button for filtering events by type
This commit is contained in:
parent
3a88983a86
commit
1767e6d183
|
@ -104,6 +104,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||
when (item.itemId) {
|
||||
R.id.change_view -> showViewDialog()
|
||||
R.id.filter -> showFilterDialog()
|
||||
R.id.import_events -> tryImportEvents()
|
||||
R.id.settings -> launchSettings()
|
||||
R.id.about -> launchAbout()
|
||||
|
@ -126,6 +127,10 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||
}
|
||||
}
|
||||
|
||||
private fun showFilterDialog() {
|
||||
|
||||
}
|
||||
|
||||
private fun updateView(view: Int) {
|
||||
calendar_fab.beGoneIf(view == YEARLY_VIEW)
|
||||
mIsMonthSelected = view == MONTHLY_VIEW
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
android:icon="@drawable/ic_change_view"
|
||||
android:title="@string/change_view"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/filter"
|
||||
android:icon="@drawable/ic_filter"
|
||||
android:title="@string/filter"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item
|
||||
android:id="@+id/import_events"
|
||||
android:title="@string/import_events_from_ics"
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Termin erfolgreich hinzugefügt</string>
|
||||
<string name="past_event_added">Termin erfolgreich in der Vergangenheit hinzugefügt</string>
|
||||
<string name="event_updated">Termin erfolgreich aktualisiert</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Wähle ein Wiederholungsintervall</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">El evento se ha añadido con éxito</string>
|
||||
<string name="past_event_added">El evento en el pasado se ha añadido con éxito</string>
|
||||
<string name="event_updated">El evento se ha actualizado con éxito</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Evénement ajouté avec succès</string>
|
||||
<string name="past_event_added">Evénement dans le passé ajouté avec succès</string>
|
||||
<string name="event_updated">Evénement ajouté avec succès</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">इवेंट सफलतापूर्वक जोड़ा गया</string>
|
||||
<string name="past_event_added">भुत में इवेंट सफलतापूर्वक जोड़ा गया</string>
|
||||
<string name="event_updated">इवेंट सफलतापूर्वक अपडेट किया गया</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Bejegyzés hozzáadva</string>
|
||||
<string name="past_event_added">Korábbi bejegyzés hozzáadva</string>
|
||||
<string name="event_updated">Bejegyzés frissítve</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Evento aggiunto correttamente</string>
|
||||
<string name="past_event_added">Event in the past added successfully</string>
|
||||
<string name="event_updated">Evento aggiornato correttamente</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">האירוע הוסף בהצלחה</string>
|
||||
<string name="past_event_added">אירוע בעבר הוסף בהצלחה</string>
|
||||
<string name="event_updated">האירוע עודכן בהצלחה</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">イベントを正常に追加しました</string>
|
||||
<string name="past_event_added">過去のイベントを正常に追加しました</string>
|
||||
<string name="event_updated">イベントを正常に更新しました</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Evento adicionado com sucesso</string>
|
||||
<string name="past_event_added">Evento no passado adicionado com sucesso</string>
|
||||
<string name="event_updated">Evento atualizado com sucesso</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Selecione o intervalo de repetição</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Событие успешно добавлено</string>
|
||||
<string name="past_event_added">Событие в прошлом успешно создано</string>
|
||||
<string name="event_updated">Событие успешно обновлено</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Udalosť bola úspešne pridaná</string>
|
||||
<string name="past_event_added">Udalosť v minulosti bola úspešne pridaná</string>
|
||||
<string name="event_updated">Udalosť bola úspešne upravená</string>
|
||||
<string name="filter">Filtrovať</string>
|
||||
<string name="filter_events_by_type">Filtrovať udalosti podľa typu</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Zvoľte opakovanie</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Händelsen tillagd</string>
|
||||
<string name="past_event_added">Händelsen ät tillagd</string>
|
||||
<string name="event_updated">Händelsen uppdaterad</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
|
@ -23,6 +23,8 @@
|
|||
<string name="event_added">Event added successfully</string>
|
||||
<string name="past_event_added">Event in the past added successfully</string>
|
||||
<string name="event_updated">Event updated successfully</string>
|
||||
<string name="filter">Filter</string>
|
||||
<string name="filter_events_by_type">Filter events by type</string>
|
||||
|
||||
<!-- Event Repetition -->
|
||||
<string name="select_repeat_interval">Select a repeat interval</string>
|
||||
|
|
Loading…
Reference in New Issue