Code Monkey home page Code Monkey logo

pulseview's Introduction


Devlight


PulseView

Widget that generates pulsation relative to your icons.

Android Arsenal       Android       Download       License       Codacy


You can check the sample app here.

Warn

This library is not more supported. 
If you want to add new feature or fix a bug, grab source code and do it. 
If you think your fix or feature would be useful to other developers, 
I can add link of your repository to this README file. 
Thank you for using our libraries.

Download

You can download an .aar from GitHub's releases page.

Or alternatively use Gradle jCenter:

dependencies {
    repositories {
        mavenCentral()
        maven {
            url  'http://dl.bintray.com/gigamole/maven/'
        }
    }
    compile 'com.github.devlight.pulseview:library:+'
}

Gradle Maven Central:

compile 'com.github.devlight.pulseview:library:1.0.2'

Maven:

<dependency>
    <groupId>com.github.devlight.pulseview</groupId>
    <artifactId>library</artifactId>
    <version>1.0.2</version>
    <type>aar</type>
</dependency>

Android SDK Version

PulseView requires a minimum SDK version of 11.

Sample

Parameters

For PulseView you can set such parameters as:

  • icon:
    at first you need to set icon for PulseView.

  • icon width and height:
    allows you to set size of the icon.

  • pulse side measure:
    allows you to set pulse side measure. Width or height of PulseView.

  • pulse count:
    allows you to set pulse count.

  • pulse spawn period:
    allows you to set pulse spawn period.

  • pulse alpha:
    allows you to set alpha to pulse.

  • pulse color:
    allows you to set pulse color.

  • interpolator:
    allows you to set an interpolator for the pulse.

  • listener:
    allows you to set pulse listener. onStartPulse() and onFinishPulse() listeners.

Tips

The icon to pulse can be a normal bitmap or a SVG file.
In preview mode PulseView renders incorrectly because the Canvas can`t scale in this mode.

Init

Check out in code init:

final PulseView pulseView = (PulseView) findViewById(R.id.pv);
pulseView.setPulseColor(Color.BLACK);
pulseView.setPulseCount(5);
pulseView.setPulseMeasure(PulseView.PulseMeasure.WIDTH);
pulseView.setIconHeight(200);
pulseView.setIconWidth(200);
pulseView.setIconRes(R.drawable.icon);
pulseView.setPulseAlpha(70);
pulseView.setInterpolator(new LinearInterpolator());
pulseView.setPulseListener(new PulseView.PulseListener(...));

To start or finish pulse you need to call methods:

pulseView.startPulse();
pulseView.finishPulse();

Other methods can be seen within the sample application.

And XML init:

<com.gigamole.library.PulseView
    android:id="@+id/pv"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:pv_icon="@drawable/icon"
    app:pv_alpha="70"
    app:pv_color="#eae761"
    app:pv_count="8"
    app:pv_measure="height"
    app:pv_icon_width="168dp"
    app:pv_icon_height="194dp"
    app:pv_spawn_period="700"
    app:pv_interpolator="@android:anim/linear_interpolator"/>

Getting Help

To report a specific problem or feature request, open a new issue on Github.

Credits

Greg Wilkinson Thomas Budiman

Author

Created by Basil Miller - @gigamole

Company

Facebook     Twitter     LinkedIn

Here you can see open source work developed by Devlight LLC.
This and another works is an exclusive property of Devlight LLC.

If you want to use this library in applications which will be available on Google Play, please report us or author of the library about it.

Whether you're searching for a new partner or trusted team for creating your new great product we are always ready to start work with you.

You can contact us: [email protected] or [email protected].
Thanks in advance.

Devlight LLC, 2016
devlight.io

pulseview's People

Contributors

ed-george avatar gigamole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pulseview's Issues

Hot to make pulse to decay faster?

I wanted to make pulse "short" so it is not spreading across the whole parent container (which is match_parent/match_parent). I ended with PulseView wrapped into another ViewGroup container but it still looks bad as it is just being clipped to parent dimensions and not that the pulse fades out faster. How can I set the pulse to decay faster?

PulseView pauses with background color filled

I have implemented the pulse view .
I m getting a issue.
It works fine on normal scenario
But sometimes when i return back to the activity / fragment
i have a huge background color with the color that is setup for pulseview and loos like pulse has frozon

Library gradle compile Issue

When I tried to use library by
compile 'com.github.devlight.pulseview:library:+'
or
compile 'com.github.devlight.pulseview:library:1.0.1'

It's giving error as "Failed to resolve com.github.devlight.pulseview:library:1.0.1"

Better documentation?

I wish there's better documentation describing each attribute and how it affects final visuals. It'd also be great to see more demo cases.

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.