Is it possible to customize the spinner drop-down view . Default spinner drop-down view has adapter view . I want change that view to have my own text view or some thing like this.
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
You can do
where
your_layout
is your XML containing only aTextView
Add this inner class in your class and modify it as you please.
And add this adapter to your spinner:
And also create a new xml and add all the things you want your spinner to contain:
This is my code so you have to change it for your needs
You can customize the drop-down view by overriding
getDropDownView
method from yourArrayAdapter
.