[TIMOB-20186] Android (Parity): Support Blur View (aka UIVisualEffectView in iOS)
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android |
| Labels | Android, Parity |
| Reporter | Ashraf Abu |
| Assignee | Unknown |
| Created | 2016-01-04T01:59:11.000+0000 |
| Updated | 2018-03-28T09:50:08.000+0000 |
Description
Providing parity to TIMOB-20176 to allow Blur functionality in Android.
Any plans to add this in near future?
In case you want to use it today: there is an external module: https://github.com/benbahrenburg/Ti.BlurView and an Hyperloop example: https://github.com/appcelerator/hyperloop-examples/blob/master/app/controllers/android/blur.js
Thanks [~michael], thats correct! You could eventually also create a lightweight CommonJS module that exports a
createBlurViewfunction and even use it in Alloy then (PoC):With a "blurView.js" in app/lib/:exports.createBlurView = function(arguments) } if (OS_IOS) { return Ti.UI.iOS.createBlurView(arguments); } else if (OS_ANDROID) { // Handle blurring via Hyperloop on Android } else if (OS_WINDOWS { // Handle blurring via Hyperloop on Windows } else { Ti.API.error('Unhandled platform implementation of the BlurView!'); } };