But when the user selects the text, then chooses the option to change the color (say, to red) the text does not appear as red until the text is unselected. ResourceCursorAdapter resourceCursorAdapter = new ResourceCursorAdapter(this, R.layout.I am creating a text editor using a JTextPane that allows the user to change the color of selected text. Create a `ResourceCursorAdapter` for the spinner with `this` context. Some of you that using MaterialBetterSpinner and Binding your Layouts,Īll the above won't help, try this, hope it helps you: public class MyAdapter extends ArrayAdapter ) Using these i am not able to change the text color of selecetd item. I am able to change the background color of the selected item, the color of the dropdown item etc, but not the text color of selected item. How can I change the font color of the selected item in a spinner?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |