Coder Social home page Coder Social logo

sudhakar-r08 / quickaction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from piruin/quickaction

1.0 0.0 0.0 915 KB

:robot: Android Library for easy create Tooltips with some action or just as decoration.

Home Page: https://piruin.me/quickaction

License: Apache License 2.0

Java 100.00%

quickaction's Introduction

Quick Action

License Build Status Download Download

Quick Action is a small android library for easy create Tooltips with some action or just as decoration. folk from NewQuickAction3D by Lorensius W. L. T.

Not just a Tooltips, This a Tooltips with Action!.

Because NewQuickAction3D is design of Android 2.x. So, I change it's style to fit with Material Design but still compatible with old java source code interface, Refactor, Transform to Gradle project and publish to JCenter.

Demo

Quick Action demo

Download

  • Step 1 - set JCenter repository (This step not require for modern android project)
  • Step 2 - Add dependencies on app module
dependencies {
  compile 'me.piruin:quickaction:LATEST_VERSION'
}

Change LATEST_VERSION to latest version name

  • Step 1 - Set JitPack repository
allprojects {
  repositories {
      ...
      maven { url "https://jitpack.io" }
    }
  }
  • Step 2 - Add dependencies on app module
dependencies {
  compile 'com.github.piruin:quickaction:LATEST_VERSION'
}

Change LATEST_VERSION to latest version name

Maven Central

No, I'm not publish to Maven Central

How to Use

See SampleActivity for Information how to use

QuickAction almost use same old NewQuickAction3D interface. Original ExampleActivity by Lorensius W. L. T still work and cover main part of it. You can get more information at his blog http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/

New Feature

My QuickAction have some additional feature more than original

Style

Background Color

  //Popup color
  quickAction.setColorRes(R.color.pink) //set by Color Resource
  quickAction.setColor(Color.WHITE) // or by Color class

Text Color

  //Text color
  quickAction.setTextColorRes(R.color.red)
  quickAction.setTextColor(Color.Black)

NOTE! setTextColor apply only ActionItem that added afterward.

Divider

Since 2.4 Control divider visibility and color by milap tank

  quickAction.setEnabledDivider(true);
  quickAction.setDividerColor(Color.WHITE);

By default, Divider is enable for Horizontal and disable of Vertical

Override Resouce

Since 2.4 android Dimen and Color resource of QuickAction marked as public, So you can override it on resource file in your project

  <dimen name="quick_action_icon_size">@dimen/menu_icon_size</dimen>
  <dimen name="quick_action_arrow_width">40dp</dimen>
  <dimen name="quick_action_arrow_height">40dp</dimen>
  <dimen name="quick_action_corner">@dimen/card_corner</dimen>
  <dimen name="quick_action_shadow_size">@dimen/card_corner</dimen>
  <dimen name="quick_action_separator_width">@dimen/list_separator_size</dimen>
  <color name="quick_action_shadow_color">@color/primary_color_dark</color>

Quick Intent Action

To lazy create list of Activity or Service that match with your Intent

  Intent intent = new Intent(Action.VIEW) // intent your want to start
  QuickAction quickIntent = new QuickIntentAction(this)
    .setActivityIntent(intent)
    .create();

Developer By

Original Developer

Changes

See CHANGELOG for details

License

This project under Apache 2.0 license

Notice

Project/File License Copyright
NewQuickAction3D Apache 2.0 Copyright 2011 Lorensius W. L. T
ArrowDrawable.java MIT Copyright (c) 2016. Viнt@rь

quickaction's People

Contributors

piruin avatar lorensiuswlt avatar kashban avatar mingfai avatar porntipa avatar milaptank avatar

Stargazers

 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.