Populate PrefenceScreen with data
I want to store drawables in a resource array like this:
@drawable/sensor_brightness
@drawable/sensor_temperature
@drawable/sensor_humidity
@drawable/sensor_carbon_dioxide
@drawable/sensor_voltage
How can I get the index of a certain item in kotlin?
Lets say I want to get the index of the element with the resourceId of 2131230874.
I know that I probably have to use a typed array like this:
val sensorIcons =...