You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example is quite straightforward and documented in comments. Just create a class and extend 'SignatureViewActivity' then implement accordingly. Remember to register the class as an activity in manifast file.
publicclassDemoSignatureViewControllerextendsSignatureViewActivity {
privateDatemDate;
privateBitmapmSignatureBitmap;
privatebyte[] mSignatureInBytes;
@OverrideprotectedvoidonCreate(BundlesavedInstanceState) {
super.onCreate(savedInstanceState);
//set sub textthis.setSubText("I accept the nothingness and meaninglessness of life");
}
//call back for done button click. returns bitmap@OverridepublicvoidonClickDone(Bitmapbitmap) {
mDate = this.getDate(); //get the date of the signaturemSignatureBitmap = bitmap; // signature in bitmap
}
//call back for done button click. returns array of byte@OverridepublicvoidonClickDone(byte[] bytes) {
mSignatureInBytes = bytes; //signature in bytes
}
//callback for cancel button click@OverridepublicvoidonClickCancel() {
}
}
Author
Sayed Mahmudul Alam
License
Copyright 2017 Sayed Mahmudul Alam
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.