Styling Spinner gives duplicates

Multi tool use
Styling Spinner gives duplicates
Above is my desired output for the spinner, but with transparent bg.
<style name="spinnerStyle">
<item name="android:textColor">@android:color/white</item>
<item name="android:background">@android:color/transparent</item>
</style>
Above gives transparency to only when spinner is not selected.
I tried setting popupBackground
to transparent but gives me the below result with duplicate item and also weird spacing.
popupBackground
Is there any way to just make the bg transparent in the first output easily?
Thanks.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.