diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt
index 83ad65ae1..cf4f5ab0b 100644
--- a/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt
+++ b/app/src/main/kotlin/com/simplemobiletools/calendar/fragments/WeekFragment.kt
@@ -16,11 +16,13 @@ import android.widget.TextView
import com.simplemobiletools.calendar.R
import com.simplemobiletools.calendar.activities.EventActivity
import com.simplemobiletools.calendar.activities.MainActivity
-import com.simplemobiletools.calendar.adapters.WeekEventsAdapter
import com.simplemobiletools.calendar.extensions.config
import com.simplemobiletools.calendar.extensions.seconds
import com.simplemobiletools.calendar.extensions.secondsInWeek
-import com.simplemobiletools.calendar.helpers.*
+import com.simplemobiletools.calendar.helpers.EVENT_ID
+import com.simplemobiletools.calendar.helpers.Formatter
+import com.simplemobiletools.calendar.helpers.WEEK_START_TIMESTAMP
+import com.simplemobiletools.calendar.helpers.WeeklyCalendarImpl
import com.simplemobiletools.calendar.interfaces.WeeklyCalendar
import com.simplemobiletools.calendar.models.Event
import com.simplemobiletools.calendar.views.MyScrollView
@@ -66,16 +68,10 @@ class WeekFragment : Fragment(), WeeklyCalendar {
updateScrollY(Math.max(MainActivity.mWeekScrollY, minScrollY))
}
})
-
- week_events_grid.adapter = WeekEventsAdapter(context, mWeekTimestamp) {
- Intent(context, EventActivity::class.java).apply {
- putExtra(NEW_EVENT_START_TS, it)
- startActivity(this)
- }
- }
}
- (0..6).map { (LayoutInflater.from(context).inflate(R.layout.stroke_width_divider, mView.week_vertical_grid_holder, true)) }
+ (0..6).map { (LayoutInflater.from(context).inflate(R.layout.stroke_vertical_divider, mView.week_vertical_grid_holder)) }
+ (0..23).map { (LayoutInflater.from(context).inflate(R.layout.stroke_horizontal_divider, mView.week_horizontal_grid_holder)) }
mCalendar = WeeklyCalendarImpl(this, context)
wasFragmentInit = true
diff --git a/app/src/main/res/layout/fragment_week.xml b/app/src/main/res/layout/fragment_week.xml
index 70f323bbf..62bdfbef1 100644
--- a/app/src/main/res/layout/fragment_week.xml
+++ b/app/src/main/res/layout/fragment_week.xml
@@ -19,18 +19,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">
-
-
@@ -77,6 +69,13 @@
android:layout_weight="1"/>
+
+
+
diff --git a/app/src/main/res/layout/stroke_horizontal_divider.xml b/app/src/main/res/layout/stroke_horizontal_divider.xml
new file mode 100644
index 000000000..924faf4a3
--- /dev/null
+++ b/app/src/main/res/layout/stroke_horizontal_divider.xml
@@ -0,0 +1,7 @@
+
+