Coder Social home page Coder Social logo

onyxandroiddemo's Introduction

Overview

Sample project of SDKs from Onyx-Intl, including onyxsdk-base, onyxsdk-scribble, onyxsdk-pen

To use the SDK, please include the following dependencies in your build.gradle:

    implementation('com.onyx.android.sdk:onyxsdk-device:1.1.11')
    implementation('com.onyx.android.sdk:onyxsdk-pen:1.2.1')

The onyxsdk-scribble SDK has a dependency on the dbflow library which is hosted in the jitpack repository. This can be added in your project's build.gradle with the following entry:

    maven { url "https://jitpack.io" }
    
    maven { url "http://repo.boox.com/repository/maven-public/" }
    

Demo

This repository contains the following examples:

1. Screen

2. Storage (SD Card)

3. Inking

The following examples demonstrate the use of the onyxsdk-pen APIs.

Any type of view can be a drawing target, e.g. a SurfaceView or a WebView. Relative coordinates appropriate to the the view being used are provided.

  • ScribbleTouchHelperDemoActivity is an example demonstrating the use of TouchHelper, a simplified drawing API, with a SurfaceView. On touch-enabled devices, fingers can be used for drawing.

  • ScribbleWebViewDemoActivity: shows how a WebView can be used to load a Web page and then apply ink to it

The SDK also provides additional functionality such as a move eraser, inking on multiple views, and saving ink strokes.

4. Screensaver

5. Settings

6. Misc API

7. App Open Guide

  • AppOpenGuide: opening an app using the Android Debug Bridge (adb)

PRs Welcome

All contributions towards documentation, adding/improving unit tests, and examples are appreciated.

onyxandroiddemo's People

Contributors

joycode avatar onyx-chenhj avatar edward259 avatar zengzhu avatar xiaomingz avatar asampal avatar onyx-hehai avatar lizhilun993 avatar wangsuicheng avatar onyx-wang avatar zhangxin0830 avatar dutou-x avatar

Watchers

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