![]() To personalize elements from the dropdown list, you need to create another layout, I will name it spinner_dropdown_item.xml: Īnd then on the adapter: ArrayAdapter adapter = ArrayAdapter.createFromResource(this,ĪtDropDownViewResource(R.layout.spinner_dropdown_item) Įven though it is an older post but as I came across it while looking for same problem so I thought I will add my two cents as well. R.layout.spinner_item, YOUR_SPINNER_CONTENT) Then on your spinner declaration, you need to make your spinner use the new layout in the adapter: ArrayAdapter adapter = ArrayAdapter.createFromResource(this, You need to create a new personalized layout for your spinner items, like this, I will name it: ![]() It works fine without nine-patch pictures. ![]() It needs to work with the transparent background in a spinner.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |