Git Product home page Git Product logo

showcaseviewlibrary's Introduction

Showcase View library

The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with a distinctive and attractive overlay. This library is great for pointing out points of interest for users, or obscure but useful items.

The library is based on the "Cling" view found in the Launcher on Ice-Cream Sandwich and Jelly Bean, but extended to be easier to use.

Example image

Usage

To achieve a full-screen overlay, place a ShowcaseView as high in your layout's view hierarchy as you can. To set the view to showcase, call ShowcaseView.setShowcaseView(..). By default, the ShowcaseView will show every time the layout is shown, but this can be altered by calling ShowcaseView.setShotType(..) before setShowcaseView(..). Using TYPE_ONE_SHOT will only show the ShowcaseView the first time the layout is shown.

As ShowcaseView extends a RelativeLayout, you can add items to the ShowcaseView, such as a button to hide it or text to explain what you are showcasing. If you give the button the id "@id/showcase_button", it will, by default, close the ShowcaseView once pressed. This behaviour can be overridden by using ShowcaseView.overrideButtonClick(..).

Styles are included to maintain consistently in ShowcaseViews. Buttons should use the style ShowcaseButton, with title text using ShowcaseTitleText and standard text using ShowcaseText.

By default, the ShowcaseView will block all touch events except inside the showcased circle. To override this, simply call ShowcaseView.blockNonShowcasedTouches(false).

Upcoming features

At the moment, this library is quite bare. However, I hope to add the following features very soon:

  • Support for showcasing raw co-ordinates Use setShowcasePosition(x,y)
  • Support for showcasing ActionBar items
  • Variable sized circles for showcasing
  • Easier usage
  • On-demand showing and hiding of ShowcaseView Use show() and hide()

Copyright and Licensing

Copyright Alex Curran © 2012. All rights reserved.

This library is disributed under an Apache 2.0 License.

showcaseviewlibrary's People

Contributors

amlcurran avatar jesusm avatar

Watchers

 avatar  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.