From 398bc9af95e59092291e96bcd8d09d47d543767a Mon Sep 17 00:00:00 2001 From: Arthur Ouaki Date: Tue, 19 Sep 2017 14:33:03 +0200 Subject: [PATCH] Completely remove native buttons --- .../RSSignatureCaptureMainView.java | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java index 97e41174..6aac4f2b 100644 --- a/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java +++ b/android/src/main/java/com/rssignaturecapture/RSSignatureCaptureMainView.java @@ -30,7 +30,6 @@ import java.lang.Boolean; public class RSSignatureCaptureMainView extends LinearLayout implements OnClickListener,RSSignatureCaptureView.SignatureCallback { - LinearLayout buttonsLayout; RSSignatureCaptureView signatureView; Activity mActivity; @@ -48,9 +47,7 @@ public RSSignatureCaptureMainView(Context context, Activity activity) { this.setOrientation(LinearLayout.VERTICAL); this.signatureView = new RSSignatureCaptureView(context, this); - // add the buttons and signature views - this.buttonsLayout = this.buttonsLayout(); - this.addView(this.buttonsLayout); + // add signature view this.addView(signatureView); setLayoutParams(new android.view.ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, @@ -79,20 +76,6 @@ public void setMaxSize(int size) { this.maxSize = size; } - - private LinearLayout buttonsLayout() { - - // create the UI programatically - LinearLayout linearLayout = new LinearLayout(this.getContext()); - - // set orientation - linearLayout.setOrientation(LinearLayout.HORIZONTAL); - linearLayout.setBackgroundColor(Color.WHITE); - - // return the whoe layout - return linearLayout; - } - // the on click listener of 'save' and 'clear' buttons @Override public void onClick(View v) { String tag = v.getTag().toString().trim();