I have managed to change the spinner text and background color using the code below.
spinner_layout.xml layout file
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:padding="5dp"
android:textColor="@color/colorBlack"
android:textSize="18sp"
android:background="@color/colorWhite"
android:fontFamily="@font/raleway"/>
kt file calling the above
ArrayAdapter(requireContext(), R.layout.spinner_layout, companyList)
The above creates a black background with white text when the spinner is open but on close, my text is black on black as my layout background is black too. How do I change the spinner close state text to white?