Giter Club home page Giter Club logo

mrtips's Introduction

== Welcome

MrTips is a 2-Class library that easily enables you to display help in your Android app.

It's been design and coded by [[Thomas Ezan|[email protected]]]

== Getting started

1. Download mrtipsX.Y.jar (in /build folder) and add it to your build path
OR add mrtips.* package into your project.

2. Add mrtips_array.xml to /value (in /example/res/value) 

3. instanciate a TipsDisplayer passing a string array initialized with the tips id list (cf. MrTipsExample activity in /example/src).
   
4. call showTipsDialog on the TipsDisplayer.


== Tips declaration

Tips are added to /value/mrtips_array.xml following this pattern :

<ressource>
  ..
  <array name="id">
        <item>title label resource id in string.xml file(optional, but empty if n/a)</item>
        <item>image name (without extension)</item>
        <item>description label resource id string.xml file</item>
        <item>checkbox label resource id string.xml file</item>
  </array>
  ..
<ressources>

You can add as many tips as you want. You must keep these four items order for each array. 

Title label :
Title label optional but the first "item" tag is required. So put an empty "item" tag if you don't want any title label.

Images :
To display an image on the popup, you just need to add the .png-file to /drawable and write the name of the image (without extension). 


For more code example, checkout this gist :
http://gist.github.com/586709

== Feedback

Feel free to contact me and give some feedback !
[email protected]


mrtips's People

Contributors

lethargicpanda avatar

Watchers

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