https://kotlinlang.org logo
Title
u

user

06/20/2022, 10:21 AM
How to call a companion object list in the activity using its name? I am trying to call a companion object list(present in other file) using the name of the list that is present in the spinner. here is spinner code:- private fun selectcourseCheckboxes() { val courseList: Array = resources.getStringArray(R.array.courses) val courseListAdapter = ArrayAdapter(this, R.layout.support_simple_spinner_dropdown_item, courseList) courses_spinner_quiz_location.adapter = courseListAdapter courses_spinner_quiz_location.onItemSelectedListener =...