I set the dynamic value in the counter. I am using the following code for it.
spinner_generalbooks.setAdapter(new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_spinner_item, new String[]{"Author","ISBN","Keyword","Title"}));
It works fine, but I have a problem with the view of the counter. If we select simple_spinner_item , this is normal in the normal state, but when we want to change it, the lines are very narrow, not CheckedTextView , whereas in the usual spinner parameters - CheckedTextView . If you select simple_spinner_dropdown_item , the parameters have a CheckedTextView , but in the normal state they look different than in Fig.
(The first one is used by default, and the second one uses simple_spinner_dropdown_item ).

I want to show the spinner in the same way as by default. How to do it?
source share