• Stars
    star
    211
  • Rank 186,164 (Top 4 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A light-weight, customizable Android signature / drawing library.

Ink Build Status

A light-weight, customizable view for capturing a signature or drawing in an Android app.

screenshot

Import the Dependency Download

To import the Android SDK, include it as a dependency in your build.gradle file

compile 'com.simplify:ink:X.X.X'

Usage

To use the library, you must include the InkView class in your project. A simple solution is to reference it directly into your layout:

<com.simplify.ink.InkView
    android:id="@+id/ink"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

Then, within your code, fetch the view and initialize it:

InkView ink = (InkView) findViewById(R.id.ink);
    ink.setColor(getResources().getColor(android.R.color.black));
    ink.setMinStrokeWidth(1.5f);
    ink.setMaxStrokeWidth(6f);

Features can be toggled on and off by using the custom attributes on the xml tag:

// add this to the root element in your layout
xmlns:app="http://schemas.android.com/apk/res-auto"

<com.simplify.ink.InkView
    android:id="@+id/ink"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:inkFlags="interpolation|responsiveWeight"/>

or by setting the flags manually in code:

InkView ink = (InkView) findViewById(R.id.ink);
ink.setFlags(InkView.FLAG_INTERPOLATION | InkView.FLAG_RESPONSIVE_WEIGHT);

By default, interpolation and responsive weight flags are on.

You can capture the drawing in the form of a bitmap by calling:

Bitmap drawing = ink.getBitmap();

or you can also include a background color:

Bitmap drawing = ink.getBitmap(getResources().getColor(R.color.my_background_color));

More Repositories

1

gateway-android-sdk

Java
49
star
2

woocommerce-simplify-payment-gateway-plugin

WooCommerce Payment Gateway plugin from Simplify Commerce
PHP
39
star
3

gateway-ios-sdk

Swift
24
star
4

simplify-android-sdk

The Simplify Commerce Android SDK
Kotlin
20
star
5

gateway-test-merchant-server

PHP
17
star
6

gateway-prestashop-module

Prestashop module for Mastercard Payment Gateway Services
PHP
11
star
7

simplify-shopping

Simplify Shopping Template
HTML
11
star
8

gateway-woocommerce-module

PHP
11
star
9

simplify-magento-module

Magento payment module from Simplify Commerce
PHP
10
star
10

simplify-opencart-module

OpenCart payment module for Simplify Commerce
PHP
9
star
11

vertx-workers-example

Example of Vert.x Worker verticles
Groovy
8
star
12

gateway-java-sample-code

Java
8
star
13

simplify-php-server

Sample PHP based server app for processing Simplify based transactions
HTML
8
star
14

simplify-nymi-example-android

Example project using Nymi & Simplify frameworks
Java
3
star
15

simplify-ios-sdk-swift

Swift
3
star
16

simplify-prestashop-module

PHP
2
star
17

3ds-starter-app

Java
2
star
18

simplify-utilities-php-example

This is an example application to help get you started accepting payments with Simplify Commerce by MasterCard.
PHP
2
star
19

woocommerce-gateway-simplify-commerce

Simplify Commerce Gateway for WooCommerce
PHP
2
star
20

ats-pos-ios-sdk

Swift
1
star
21

ats-pos-android-sdk

Kotlin
1
star
22

android-embedded-hosted-payments-sample

Kotlin
1
star
23

simplify-rails-example

Sample Rails app using Simplify Commerce
Ruby
1
star
24

simplify-prestashop-module-archive

PrestaShop payments module for Simplify Commerce
PHP
1
star
25

simplify-payment-examples

PHP
1
star