GithubHelp home page GithubHelp logo

barista's Introduction

Barista

Barista is a suite of Android widgets. The suite is currenlty comprised of:

  • Audio Visualizer
  • Radial Progress Bar Indicator

Audio Visualizer

The audio visualizer widget bridges the gap between audio capture and audio visualization. The widget translates captured audio samples from the time domain to the frequency domain. A histogram of frequency magnitudes is then provided to the developer to visualize the audio spectrum in real time. Two renders are provided as examples of how to use the widget:

  • BarRender
  • RoundedBarRender

Radial Progress Bar Indicator

The Radial Progress Indicator provides a visual indicator of progress for an operation. The progress is displayed as a radial arc from [0 .. 360]. The component operates in 3 modes:

  • Timer: The application can provide a timeout duration in seconds. The radial indicator will countdown from the duration to 0. A callback is triggered upon reaching 0.
  • Percentage: The application can update the amount of progress and the indicator will advance the position radially along the track of the indicator. The overall progress is displayed as a percentage from [0 .. 100] in the center of the radial indicator.
  • Fixed: Operates similar to Percentage with the exception that the progress value is rendered as the current value. For example: if the max progress is set to 3000 and the current progress is 500 then 500 will be displayed in the center (as opposed to the percentage).

barista's People

Contributors

cargo8 avatar jsaund avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

barista's Issues

Disable animation when view is detached from parent

If the view has detached from the parent (if the parent is no longer on screen or visible) then the view should stop rendering updates. When the view is reattached to the parent then it should resume at the correct spot.

Save / Restore State

If the view is destroyed and reconstructed, the view should restore it's state.
For example, if the user rotates the device, the widget should save it's state (current primary/secondary progress, etc) and restore itself when the view is attached to the window again.

Style for no progress text in center

Right now you can accomplish this with @null text color, but since STYLE seems to mainly control the progress text that appears seems like there should be a STYLE for no progress text

Utilize secondary track paint

The secondary track paint is currently not used. It is not drawn to the screen. The track is considered invisible at the moment. Update to paint the secondary track but default to invisible if one is not provided.

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.