google maps - Native View Within MasterDetailPage Xamarin Android -
google maps - Native View Within MasterDetailPage Xamarin Android -
i have map view trying create bit more advanced map implementation provided xamarin.forms. wondering if there pattern embedding native view withing master detail page.
in illustration image top navigation bar built in xamarin , content part highlighted in violet should created individually per platform.
this typically renderer take over.
see customizing controls each platform , forms2native sample.
you create mapcontentpage extend contentpage , have attribute on top :
[assembly: exportrenderer (typeof (mapcontentpage), typeof (mapcontentpagerenderer))]
then you'd create renderer android called mapcontentpagerenderer , in onelementchanged, instanciate map using 'regular' mono android code.
android google-maps xamarin xamarin.forms
Comments
Post a Comment