I am working on development of a dark mode for an application in android studio. This application uses a custom background element for the EditText which I have called custom_edit_text. To be assured of backwards compatibility I have created a "layout" and a "layout-v29" folder for the dark mode changes, and similarly I have created a "drawable" and "drawable-v29" for the custom_edit_text.
This has worked for devices around the office and on the emulator, however a fellow employees galaxy s9 will not display the new drawable and instead defaults to using the "drawable" version of the custom_edit_text instead of the -v29.
What needs to be done so that the appropriate drawable ends up in the layout based upon the api version of the phone in question?
It is quite likely that the S9 does not support api level 29 as that equals to Android 10 which is quite new.
You would need to have a drawable-v26
to ensure the Galaxy S9 woulds work as they shipped with Android 8 I believe.