Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.39 KB

README.md

File metadata and controls

31 lines (23 loc) · 1.39 KB

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