Can I Call Multiple Adapter Classes In Android Listview?
XML code
Solution 1:
Yes you can use Multiple Adapter for ListView if,
- If you are not populating your ListView with both Adapters at the same time.
- If you are populating your ListView alternatively with the Adapter then its fine.
- If one Adapter is not affecting the other as only one Adapter will be in effect at a time.
I think in your case you are showing both ListView at the same Activity so its better to use a seperate Adapter
Post a Comment for "Can I Call Multiple Adapter Classes In Android Listview?"