Giter VIP home page Giter VIP logo

cornedbeef's Introduction

This is an open source library. Please do not create branches, public forks or pull requests containing sensitive information

Float

An Android library by for displaying instructional overlays or 'coach marks' that float above the current window.

Coach marks can be associated with a particular view but are independent of the underlying layout, making it easy to add them to new and existing projects alike. Separation from the standard layout also makes it easier to control where and when overlays are visible, which is particularly useful when coach marks are temporary or context specific.

There are currently 4 types of pre-built coach mark: BubbleCoachMark, HighlightCoachMark, LayeredCoachMark and PunchHoleCoachMark.

A speech bubble that can be configured to point to a particular view, or sub-region within a view. Bubble coach marks can include a simple message or a fully customisable view.

A thin border around a particular view, or sub-region.

A translucent layer onto the particular view, or sub-region. Layered coach marks can include a simple message or a fully customisable view.

A translucent layer onto the particular view and "Punch Hole" for given child view component. The target child view should be within the parent view to properly located the hole. PunchHole coach marks can include a simple message or a fully customisable view where upper or lower side of the hole.

screenshot of examples

Building and running the tests

./gradlew clean build test connectedAndroidTest

Proguard rules

It's safe to use either getDefaultProguardFile('proguard-android.txt') or getDefaultProguardFile('proguard-android-optimize.txt'). CornedBeef uses the Android animator APIs which require reflection and can make some methods appear to be deadcode to proguard.

Use the following explicit rule to make sure these APIs remain if you are experiencing problems with the PunchHoleCoachMark animations:

-keepclassmembers public class * extends android.view.View {
   void set*(***);
   *** get*();
}

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Created by SwiftKey

cornedbeef's People

Contributors

lachiemurray avatar dongyi-chun avatar nachodeh avatar jpumphrey avatar ojj11 avatar beatrizz 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.