Git Product home page Git Product logo

iridescentview's Introduction

IridescentView

Ler em português

IridescentStar

IridescentGlobe

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:

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:

implementation("io.github.alexandrehtrb:iridescentview:1.0.0")

To use the View in a XML layout, add like below:

<br.alexandrehtrb.iridescentview.IridescentView
    android:id="@+id/iridescent_star"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_centerInParent="true"
    android:src="@drawable/black_star"/>

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:

Install-Package Br.AlexandreHtrb.IridescentView -Version 1.0.0

To use the View in a AXML layout, add like below:

<!-- The complete name of the class is different in Xamarin.Android -->
<Br.AlexandreHtrb.IridescentView.IridescentView
    android:id="@+id/iridescent_star"
    android:layout_height="wrap_content"
    android:layout_width="wrap_content"
    android:layout_centerInParent="true"
    android:src="@drawable/black_star"/>

The minimum Android API is API 28 (Android 9.0 Pie).

iridescentview's People

Contributors

alexandrehtrb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.