Maybe there is an obvious answer that I missed, but I'm wondering how can I display a legend from a web map? I was looking at Esri's GitHub Android Sample for displaying a legend, but this is using a Dynamic Service Layer, not a webmap. I'm planning on displaying the legend the same way through a Fragment, but the ArcGISDynamicMapServiceLayer has a method to retrieve the legend info. I am not seeing anything like this to call from a MapView.
I am instantiating a MapView using a url like this to load the WebMap:
map = new MapView(
this,
"http://www.arcgis.com/home/item.html?id=caee4b7fdf5c49c285995b5d1b25e123",
"", "");
I know I can iterate through the map layers, but I couldn't see anything in a Layer either that would give me a renderer or legend info (besides whether or not there is a legend item for it). I feel like I'm making this harder than it needs to be...