forked from Programming-With-Chris/ShoppingList
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09a25cb
commit 78708ee
Showing
11 changed files
with
115 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
namespace ShoppingList.Controls; | ||
|
||
public class CircularButton : GraphicsView, IGraphicsView | ||
{ | ||
public new IDrawable Drawable { get; set; } | ||
|
||
public CircularButton() | ||
{ | ||
var drawable = new ShoppingList.Drawable.CircularButton(); | ||
this.Drawable = drawable; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using SkiaSharp; | ||
using SkiaSharp.Extended.UI.Controls; | ||
|
||
namespace ShoppingList.Controls; | ||
|
||
public class CircularLottie : SKLottieView | ||
{ | ||
public new Color BackgroundColor = Colors.Transparent; | ||
|
||
|
||
public CircularLottie() : base() | ||
{ | ||
Console.Write("test"); | ||
this.IsAnimationEnabled = true; | ||
//base.OnPaintSurface(); | ||
} | ||
|
||
protected override void OnPaintSurface(SKCanvas canvas, SKSize size) | ||
{ | ||
Console.Write("test"); | ||
using var paint = new SKPaint | ||
{ | ||
IsAntialias = true, | ||
Color = SKColors.Blue | ||
}; | ||
canvas.DrawCircle(200, 200, 100, paint); | ||
|
||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters