File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
java/me/alllexey123/itmowidgets/ui/widgets/data Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package me.alllexey123.itmowidgets.ui.widgets.data
33object LessonListDataHolder {
44 @Volatile
55 private var data: LessonListWidgetData = LessonListWidgetData (
6- listOf (LessonListWidgetEntry .LessonListEnd )
6+ listOf (LessonListWidgetEntry .Updating )
77 )
88
99 fun setData (newData : LessonListWidgetData ) {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ sealed class LessonListWidgetEntry(open val layoutId: Int) {
77 object FullDayEmpty : LessonListWidgetEntry(R .layout.item_lesson_list_empty)
88 object NoMoreLessons : LessonListWidgetEntry(R .layout.item_lesson_list_no_more)
99 object LessonListEnd : LessonListWidgetEntry(R .layout.item_lesson_list_end)
10+ object Updating : LessonListWidgetEntry(R .layout.item_lesson_list_updating)
1011
1112 // null to hide
1213 data class LessonData (
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ android : layout_width =" match_parent"
4+ android : layout_height =" wrap_content"
5+ android : id =" @+id/item_root" >
6+
7+ <TextView
8+ android : id =" @+id/empty_view"
9+ android : layout_width =" match_parent"
10+ android : layout_height =" wrap_content"
11+ android : gravity =" center"
12+ android : padding =" 16dp"
13+ android : text =" Обновление данных..."
14+ android : textAppearance =" ?android:attr/textAppearanceMedium"
15+ android : textColor =" ?attr/colorOnSurface" />
16+
17+ </LinearLayout >
You can’t perform that action at this time.
0 commit comments