Quick Action

Additional

Language
Java
Version
2.3-beta (May 12, 2017)
Created
Jan 2, 2012
Updated
May 12, 2017
Owner
Blast Piruin Panichphol (piruin)
Contributors
kashban
Lorensius W. L. T (lorensiuswlt)
Blast Piruin Panichphol (piruin)
porntipa
4
Activity
Badge
Generate
Download
Source code

Announcement

Quick Action

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

Download

JCenter

  • 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

JitPack

  • 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

Set Popup's Color & Text Color

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

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

NOTE! setTextColor apply only ActionItem that added afterward.

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ь