In this section, we will build the Android portion of our PlatformEffects
that will allow us to customize the appearance of Xamarin.Forms
control elements just like we did for the iOS portion, and we will be implementing the same PlatformEffects
--LabelShadow
and ButtonShadow
to show you how these implementations differ on each platform, even though the resulting rendering is the same.
Let's take a look at how we can achieve this, by following the steps:
Create a new folder within the
TrackMyWalks.Droid
project, calledPlatformEffects
.Next, create an empty class within the
PlatformEffects
folder for ourTrackMyWalks.Droid
project.Then, enter
ButtonShadowEffect
as the name of the new class file to create, ensure that theButtonShadowEffect.cs
file is displayed within the code editor, and enter the following code snippet:// // ButtonShadowEffect.cs // TrackMyWalks Button Shadow Effect...