Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandrehtrb/iridescentview
A custom View for Android Java / Xamarin.Android that creates an iridescent effect on top of images.
https://github.com/alexandrehtrb/iridescentview
accelerometer android android-java gamer gradient holographic iridescence rainbow stickers xamarin xamarin-android
Last synced: 2 months ago
JSON representation
A custom View for Android Java / Xamarin.Android that creates an iridescent effect on top of images.
- Host: GitHub
- URL: https://github.com/alexandrehtrb/iridescentview
- Owner: alexandrehtrb
- License: mit
- Created: 2018-05-22T13:51:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T14:33:22.000Z (9 months ago)
- Last Synced: 2024-11-08T21:05:32.231Z (2 months ago)
- Topics: accelerometer, android, android-java, gamer, gradient, holographic, iridescence, rainbow, stickers, xamarin, xamarin-android
- Language: C#
- Homepage:
- Size: 13.2 MB
- Stars: 21
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# IridescentView
[Ler em português](README_pt.md)
https://github.com/alexandrehtrb/IridescentView/assets/27026741/fbc5220f-5533-4ddc-9238-d2edb383b4d5
![IridescentGlobe](iridescent_globe.jpg)
The IridescentView is a custom ImageView that applies an iridescent effect on images, according to the device's rotation. The rotation is acquired by the accelerometer and used for the calculation of the effect.
The component is available for Android Java and Xamarin.Android.
## To use in Android Java
In the Gradle scripts, the Maven Central repository must be declared:
```kt
allprojects {
repositories {
google()
jcenter()
mavenCentral()
// other Maven repositories
}
}
```In the Gradle script of the module in which you want to use the View, include the dependency inside the `dependencies` block:
```kt
implementation("io.github.alexandrehtrb:iridescentview:1.0.0")
```To use the View in a XML layout, add like below:
```xml
```
The minimum Android API is API 11 (Android 3.0 Honeycomb).
## To use in Xamarin.Android
To add the component in your project, install the [NuGet package](https://www.nuget.org/packages/Br.AlexandreHtrb.IridescentView/):
```
Install-Package Br.AlexandreHtrb.IridescentView -Version 1.0.0
```To use the View in a AXML layout, add like below:
```xml
```
The minimum Android API is API 28 (Android 9.0 Pie).