Skip to content

Commit

Permalink
Setter for Button Background
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Schens authored and Artur Schens committed Oct 22, 2018
1 parent 38c6729 commit c344529
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,22 @@ public void unregisterOnDateChangedListener(OnDateChangedListener listener) {
public void tryVibrate() {
if(mVibrate) mHapticFeedbackController.tryVibrate();
}


public void setCancelBackgroundColor(int color) {
Button cancelButton = (Button) getView().findViewById(R.id.cancel);
if (cancelButton != null) {
cancelButton.setBackgroundColor(color);
}
}

public void setPositiveButtonBackgroundColor(int color) {
Button okButton = (Button) getView().findViewById(R.id.ok);
if (okButton != null) {
okButton.setBackgroundColor(color);
}
}


/**
* setStartTitle
* @param String the title to display for start panel
Expand Down

0 comments on commit c344529

Please sign in to comment.