diff --git a/README.md b/README.md index fea713d..2d23fde 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,24 @@ Efficient way to add a shimmering effect to your Xamarin.Forms applications. # How To Use -ToDo the specifications. For now, check the sample. It's quite easy. +* Add nuget package Xamarin.Essentials to all projects +* Add Init method to ```App.cs``` constructor: +``` +InitializeComponent(); +var density = Xamarin.Essentials.DeviceDisplay.MainDisplayInfo.Density; +ShimmerLayout.Init(density); +``` +* add reference: +```xml +xmlns:controls="clr-namespace:XFShimmerLayout.Controls;assembly=XFShimmerLayout" +``` +* Paste content inside shimmerLayout: +```xml + + + +``` # How it works ## Drawing Process @@ -52,4 +68,4 @@ To make the animation happen, we need startX and endX: * The StartX will be 0 - GradientSizeInPixels * The EndX will be the Width + GradientSizeInPixels -We created an animation that animates a value from the StartX to EndX and every time we ```InvalidateSurface``` of the ```Canvas```. \ No newline at end of file +We created an animation that animates a value from the StartX to EndX and every time we ```InvalidateSurface``` of the ```Canvas```.