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
namespace TestApp.Platforms.Android.Services | |
{ | |
internal class PDFRenderService : IPDFRenderService | |
{ | |
private AppCompatActivity activity; | |
public PDFRenderService(AppCompatActivity activity) | |
{ | |
this.activity = activity; | |
} |
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
// Code | |
// Example for ImageButton Background Rippleeffect | |
Microsoft.Maui.Handlers.ImageButtonHandler.Mapper.AppendToMapping(nameof(IView.Background), (handler, _) => | |
{ // Todo: Needs Update after Theme Change so it uses the different Color | |
#if ANDROID | |
var contextResourceColor = AndroidX.Core.Content.ContextCompat.GetColor(handler.MauiContext.Context, Resource.Color.ripple_material_light); | |
var rippleColor = new Android.Graphics.Color(contextResourceColor); | |
var rippleDrawable = RippleDrawableHelper.GetRippleDrawableByStates(rippleColor); | |
handler.PlatformView.SetBackground(rippleDrawable); |