Skip to content

Commit

Permalink
Completely remove native buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
aouaki committed Sep 19, 2017
1 parent 93a73d1 commit 398bc9a
Showing 1 changed file with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.lang.Boolean;

public class RSSignatureCaptureMainView extends LinearLayout implements OnClickListener,RSSignatureCaptureView.SignatureCallback {
LinearLayout buttonsLayout;
RSSignatureCaptureView signatureView;

Activity mActivity;
Expand All @@ -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,
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 398bc9a

Please sign in to comment.