Skip to content

Commit 34fdf10

Browse files
committed
Pull request #73: [HWG] Adding HWG sample.
Merge in SDK/iink_sdk-additional-examples-android from adding-hw-generation to master * commit 'f37ada0a722ccfcdf19ab6a376d76238fb5ae023': [HWG] Updating to 4.1 [HWG] Readme update [HWG] Check and alert about proper certificate and resource. [HWG] Adding notifications [HWG] Build from file + progress [HWG] Profile Builder [HWG] Adding selection tool [HWG] Adjusting with new conf [HWG] Adding HWG sample.
2 parents 07bc296 + f37ada0 commit 34fdf10

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1765
-3
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ This sample uses a third-party rendering library to manage the captured strokes
7171
6. The keyboard input sample shows a specific usage for the `Placeholder` feature. In this sample, you'll be able to input text by keyboard within an iink document, with minumum code.
7272
It shows how to manage switching from an Android view to an image managed by iink.
7373

74+
7. The handwriting generation sample demonstrates the use of MyScript's handwriting generation APIs. It shows how to generate ink from text input, in different styles, and how to create a style from your own handwriting.
75+
To use the handwriting generation, you must [contact our sales team](https://developer.myscript.com/contact-us/on-device-recognition).
76+
7477
## Documentation
7578

7679
A complete guide is available on [MyScript Developer Portal](https://developer.myscript.com/docs/interactive-ink/latest/android/).

samples/hwgeneration/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build/
2+
.gradle/
3+
.idea/
4+
assets/
5+
.DS_Store

samples/hwgeneration/build.gradle

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'kotlin-android'
4+
}
5+
6+
android {
7+
namespace 'com.myscript.iink.samples.hwgeneration'
8+
9+
compileSdk Versions.compileSdk
10+
11+
buildFeatures {
12+
viewBinding true
13+
buildConfig true
14+
}
15+
16+
defaultConfig {
17+
minSdk Versions.minSdk
18+
targetSdk Versions.targetSdk
19+
20+
applicationId 'com.myscript.iink.samples.hwgeneration'
21+
versionCode project.ext.iinkVersionCode
22+
versionName project.ext.iinkVersionName
23+
24+
vectorDrawables.useSupportLibrary true
25+
}
26+
}
27+
28+
dependencies {
29+
implementation "androidx.core:core-ktx:${Versions.androidx_core}"
30+
implementation "androidx.activity:activity-ktx:${Versions.androidx_activity}"
31+
implementation "androidx.appcompat:appcompat:${Versions.appcompat}"
32+
implementation "com.google.android.material:material:${Versions.material}"
33+
34+
implementation project(':UIReferenceImplementation')
35+
implementation project(':myscript-certificate')
36+
37+
implementation "com.google.code.gson:gson:${Versions.gson}"
38+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<application
5+
android:name=".IInkApplication"
6+
android:icon="@mipmap/ic_launcher"
7+
android:label="@string/app_name"
8+
android:roundIcon="@mipmap/ic_launcher_round"
9+
android:theme="@style/Theme.AppCompat.Light">
10+
<activity
11+
android:name=".MainActivity"
12+
android:windowSoftInputMode="adjustPan"
13+
android:exported="true">
14+
<intent-filter>
15+
<action android:name="android.intent.action.MAIN" />
16+
<category android:name="android.intent.category.LAUNCHER" />
17+
</intent-filter>
18+
</activity>
19+
</application>
20+
21+
</manifest>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"raw-content": {
3+
"session-time": 100,
4+
"classification": {
5+
"types": [ "text", "shape", "drawing" ]
6+
},
7+
"recognition": {
8+
"types": [ "text", "shape", "math" ]
9+
},
10+
"convert": {
11+
"shape-on-hold": true,
12+
"types": [ "text", "shape", "math" ]
13+
},
14+
"shape": {
15+
"snap-axis": [ "triangle", "rectangle", "rhombus", "parallelogram", "ellipse" ]
16+
},
17+
"eraser": {
18+
"erase-precisely": false,
19+
"dynamic-radius": true
20+
},
21+
"auto-connection": true,
22+
"interactive-blocks": {
23+
"feedback": [ "math" ]
24+
},
25+
"pen": {
26+
"gestures": [ "scratch-out", "strike-through", "surround", "long-press" ]
27+
},
28+
"line-pattern": "grid",
29+
"guides": {
30+
"show": [ "alignment", "text", "square", "square-inside", "image-aspect-ratio", "rotation" ],
31+
"snap": [ "alignment", "text", "square", "square-inside", "image-aspect-ratio", "rotation" ]
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)