I want to create a list of cards each having a map fragment is that's possible ?
Asked
Active
Viewed 585 times
1 Answers
0
Can I add a mapfragment into a listView
No, because fragments cannot go into any AdapterView
.
Also, you cannot readily put scrollable things into other scrollable things. Both a map and a ListView
know how to scroll vertically. You are welcome to experiment with putting MapViews
into ListView
rows, but I expect the results to be unusable.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
Are you sure? @CommonsWare I just managed to implement YouTubePlayerFragments into CardViews in a ReyclerView. – Flyview Nov 06 '15 at 16:27
-
@Flyview: First, `RecyclerView` is not an `AdapterView`. Second, my statement is based on [Dianne Hackborn's statements about this](https://groups.google.com/d/topic/android-developers/ZmkLo7lxm9k), and since she created the fragments implementation in the first place, her opinion would seem to carry some weight. – CommonsWare Nov 06 '15 at 16:31
-
Ha-ha OK yes my mistake! @CommonsWare – Flyview Nov 06 '15 at 20:38