How to make a spinner like in the picture with categories and subcategories? Maybe there is any way to help me with this?
- Listen, well, these are basic things, in every tutorial there are. What specifically does not work. - Enikeyschik
- oneIt is not clear how to make subcategories - Alex Sh.
- 3Spinner is not designed for such functionality and with its help it is not worth trying to do. This can be done using ExpandableListView - pavlofff
- oneSo ask "how to make subcategories in a spinner", and not "how to make a spinner." - Enikeyschik
- Read carefully, it is written after all - "With categories and subcategories" - Alex Sh.
|
1 answer
1) Open https://developer.android.com/training/custom-views/create-view.html
2) Look for info about BaseAdapter class, you will need to implement nesting (categories / subcategories)
3) Implement your custom-view, I advise you to inherit via RecyclerView and custom through it, it’s better to use its adapter, I think you will understand, you will understand, there is quite a lot of information about it)
|
