if (i.toLong() == indexOfDay) {

                findViewById<LinearLayout>(layoutId).setBackgroundColor(
                    ContextCompat.getColor(
                        applicationContext,