Spinner ArrayAdapter Kotlin Fragment

spinner.adapter = ArrayAdapter(
    this,
    R.layout.support_simple_spinner_dropdown_item,
    resources.getStringArray(R.array.atoms)
) as SpinnerAdapter
Stupid Spider