Skip to content

Commit

Permalink
Remove native buttons on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
aouaki committed Aug 28, 2017
1 parent 8e00dc5 commit de6f884
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,11 @@ private LinearLayout buttonsLayout() {

// create the UI programatically
LinearLayout linearLayout = new LinearLayout(this.getContext());
Button saveBtn = new Button(this.getContext());
Button clearBtn = new Button(this.getContext());

// set orientation
linearLayout.setOrientation(LinearLayout.HORIZONTAL);
linearLayout.setBackgroundColor(Color.WHITE);

// set texts, tags and OnClickListener
saveBtn.setText("Save");
saveBtn.setTag("Save");
saveBtn.setOnClickListener(this);

clearBtn.setText("Reset");
clearBtn.setTag("Reset");
clearBtn.setOnClickListener(this);

linearLayout.addView(saveBtn);
linearLayout.addView(clearBtn);

// return the whoe layout
return linearLayout;
}
Expand Down

0 comments on commit de6f884

Please sign in to comment.