rename widget_preview to widget_monthly_preview
|
@ -66,7 +66,7 @@
|
|||
|
||||
<receiver
|
||||
android:name=".helpers.MyWidgetMonthlyProvider"
|
||||
android:icon="@mipmap/widget_preview"
|
||||
android:icon="@mipmap/widget_monthly_preview"
|
||||
android:label="@string/widget_monthly">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
|
@ -79,7 +79,7 @@
|
|||
|
||||
<receiver
|
||||
android:name=".helpers.MyWidgetListProvider"
|
||||
android:icon="@mipmap/widget_preview"
|
||||
android:icon="@mipmap/widget_monthly_preview"
|
||||
android:label="@string/widget_list">
|
||||
<intent-filter>
|
||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||
|
|
|
@ -164,10 +164,12 @@ class WidgetListConfigureActivity : AppCompatActivity() {
|
|||
day = Formatter.getDayTitle(this, code)
|
||||
listItems.add(ListSection(day))
|
||||
|
||||
time = dateTime.withHourOfDay(8)
|
||||
listItems.add(ListEvent(3, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Library", ""))
|
||||
time = dateTime.withHourOfDay(13)
|
||||
listItems.add(ListEvent(3, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Lunch with Mary", "In the Plaza"))
|
||||
listItems.add(ListEvent(4, (time.millis / 1000).toInt(), (time.plusHours(1).millis / 1000).toInt(), "Lunch with Mary", "In the Plaza"))
|
||||
time = dateTime.withHourOfDay(18)
|
||||
listItems.add(ListEvent(4, (time.millis / 1000).toInt(), (time.plusMinutes(10).millis / 1000).toInt(), "Coffee time", ""))
|
||||
listItems.add(ListEvent(5, (time.millis / 1000).toInt(), (time.plusMinutes(10).millis / 1000).toInt(), "Coffee time", ""))
|
||||
|
||||
return listItems
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
|
@ -4,6 +4,6 @@
|
|||
android:initialLayout="@layout/widget_event_list"
|
||||
android:minHeight="@dimen/min_widget_height"
|
||||
android:minWidth="@dimen/min_widget_width"
|
||||
android:previewImage="@mipmap/widget_preview"
|
||||
android:previewImage="@mipmap/widget_monthly_preview"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="600000"/>
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
android:initialLayout="@layout/fragment_month"
|
||||
android:minHeight="@dimen/min_widget_height"
|
||||
android:minWidth="@dimen/min_widget_width"
|
||||
android:previewImage="@mipmap/widget_preview"
|
||||
android:previewImage="@mipmap/widget_monthly_preview"
|
||||
android:resizeMode="horizontal|vertical"
|
||||
android:updatePeriodMillis="3600000"/>
|
||||
|
|