Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Far5had70 committed Nov 19, 2018
1 parent bb877a1 commit 064cb2d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ You can try it out here [Sample Application](https://github.com/Far5had70/Calcul
CalculatorDialog calculatorDialog = new CalculatorDialog()
.setAlertRadius(30)
.setCalc("0")
.setTextButton("ثبت")
.setTypeFace(Typeface.createFromAsset(getAssets(), "bsans.ttf"))
.setListener(new Listener() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public void onClick(View v) {
CalculatorDialog calculatorDialog = new CalculatorDialog()
.setAlertRadius(30)
.setCalc(editText.getText().toString())
.setTextButton("ثبت")
.setTypeFace(Typeface.createFromAsset(getAssets(), "bsans.ttf"))
.setListener(new Listener() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class CalculatorDialog extends DialogFragment {
private Listener listener;
private Typeface typeFace;
private String number = "";
private String textButton = "ثبت";

TextView button0, button1, button2, button3, button4, button5, button6,
button7, button8, button9, buttonAdd, buttonSub, buttonDivision,
Expand Down Expand Up @@ -104,6 +105,8 @@ private void init() {
crunchifyEditText.setText(""+number);
}

Submit.setText(textButton);


button1.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down Expand Up @@ -365,6 +368,11 @@ public CalculatorDialog setCalc(String number) {
return this;
}

public CalculatorDialog setTextButton(String textButton) {
this.textButton = textButton;
return this;
}

}


0 comments on commit 064cb2d

Please sign in to comment.