Update UI, Update project structure, bug fixes

This commit is contained in:
Tommaso Berlose
2017-10-09 09:41:47 +02:00
parent 37920e2991
commit f62f9dc3bd
18 changed files with 383 additions and 248 deletions

View File

@ -0,0 +1,16 @@
package com.tommasoberlose.anotherwidget.`object`
/**
* Created by tommaso on 08/10/17.
*/
class Calendar(id: Int, name: String, account_name: String) {
var id: Int = 0
var name: String = ""
var account_name: String = ""
init {
this.id = id
this.name = name
this.account_name = account_name
}
}

View File

@ -15,6 +15,8 @@ object Constants {
val PREF_WEATHER_ICON = "PREF_WEATHER_ICON"
val PREF_WEATHER_TEMP = "PREF_WEATHER_TEMP"
val PREF_WEATHER_TEMP_UNIT = "PREF_WEATHER_TEMP_UNIT"
val PREF_CALENDAR_ALL_DAY = "PREF_CALENDAR_ALL_DAY"
val PREF_CALENDAR_FILTER = "PREF_CALENDAR_FILTER"
val dateFormat = SimpleDateFormat("EEEE, MMM d", Locale.getDefault())
val hourFormat = SimpleDateFormat("HH:mm", Locale.getDefault())