Skip to content

LeoAndo/RenderEffectSample

Repository files navigation

RenderEffectSample

RenderEffect sample (Android 12 +)

日本語版README

Overview

Since Android 12, the view blur function has been added to the Android API, so it is the API verification app.

API

RenderEffect
View#setRenderEffect
setBackgroundBlurRadius
setBackgroundBlurRadius is used for Window content.
Note that the following Exception will occur if 0.0 is specified for the arguments radiusX and radiusY ofView#setRenderEffect.

java.lang.IllegalArgumentException: nativePtr is null

View blur functions

  • Using the setRenderEffect(android.graphics.RenderEffect) API, you can set the blur in any view.
  • You can also blur what is behind the Window content

capture

refs

android-12-developer-preview-2

About

RenderEffect sample (Android 12 +)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages