Creating and implementing the CustomMapRenderer (Android)
In this section, we will begin creating the CustomMapRenderer
class for the Android section of our TrackMyWalks
solution, which will essentially contain various instance methods that will be used by our LocationService
class. The advantage of creating a CustomMapRenderer
class is that it's much easier to add additional class instance methods that will be used by those ViewModels that utilize this interface.
Let's start by creating the CustomMapRenderer
class for our TrackMyWalks.Android
app by performing the following steps:
- First, create a new folder called
CustomRenderers
within theTrackMyWalks.Android
folder, as you did in the section entitled Creating and implementing the CustomMapRenderer (iOS), located within this chapter. - Next, create a new
Empty Class
calledCustomRenderer
within theCustomRenderers
folder. - Then, open the
CustomMapRenderer.cs
file, which is located as part of theTrackMyWalks.Android
group and ensure that it...