You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Remove requirement for an Adapter on MarkerView #5214
Currently we require a developer to provide an MarkerViewAdapter to be able show a MarkerView.
Current game plan is to remove this requirement and handle the logic for them. Internally the base MarkerView will be backed up by ImageMarkerViewAdapter and will leverage the Icon attribute in Marker.
Sounds amazing, this will make it much more handy! I couldn't even convert the icon's bitmap of the passed marker back to a drawable and use it for viewHolder.icon.setImageDrawable()
Guess I don't have to write my own View classes anymore just to pass a drawable directly.
Maybe you could also test the behaviour of the issues I have experienced concerning the removing and adding new markerviews (#5161). Moreover, you said that the View things will provide a fix to disappearing Icons/Markers during runtime. Did it fix it?
Activity
Schumi09 commentedon Jun 2, 2016
Sounds amazing, this will make it much more handy! I couldn't even convert the icon's bitmap of the passed marker back to a drawable and use it for
viewHolder.icon.setImageDrawable()Guess I don't have to write my own View classes anymore just to pass a drawable directly.
tobrun commentedon Jun 2, 2016
@Schumi09
With the changes made you can achieve that as well ;)
tobrun commentedon Jun 2, 2016
This is the code a developer needs to write to show a normal MarkerView:
Below you can see where I'm updating the Icon every 3 seconds through
markerView.setIcon():Schumi09 commentedon Jun 2, 2016
Good job 👍
Will it make it into the tomorrow's snapshot?
Maybe you could also test the behaviour of the issues I have experienced concerning the removing and adding new markerviews (#5161). Moreover, you said that the View things will provide a fix to disappearing Icons/Markers during runtime. Did it fix it?
tobrun commentedon Jun 2, 2016
I'm planning to do some general improvement to this system in #5076, this includes looking into above.
Yes this issue should be resolved by using this API.
[android] #5214 - remove requirement adapter for MarkerView, allow us…
[android] #5214 - fix null pointer + fix test app
[android] #5214 - remove requirement adapter for MarkerView, allow us…
tobrun commentedon Jun 3, 2016
merged with 087cad0, closing