Skip to content

Commit

Permalink
first release
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeinnumer committed Oct 31, 2020
1 parent 9446035 commit ea44f13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ button.setOnClickListener(new View.OnClickListener() {
String str = editText.getText().toString();
Log.d(TAG, "onClick: "+CurrencyConverter.trimCommaOfString(str));
Log.d(TAG, "onClick: "+editText.getText().toString());

textView.setText(CurrencyConverter.trimCommaOfString(str));
}
});

Expand All @@ -67,6 +69,8 @@ editText.addTextChangedListener(new CurrencyConverter(editText, new CurrencyConv
public void realString(String value) {
Log.d(TAG, "realString: "+value);
Log.d(TAG, "realString: "+editText.getText().toString());

textView.setText("(Real Value) : "+value + " && (Preview) : "+editText.getText().toString());
}
}));
```
Expand All @@ -79,6 +83,8 @@ button.setOnClickListener {
val str: String = editText.text.toString()
Log.d(TAG, "onClick: " + CurrencyConverter.trimCommaOfString(str))
Log.d(TAG, "onClick: "+editText.text.toString())

textView.text = CurrencyConverter.trimCommaOfString(str)
}

//sample 2
Expand All @@ -88,6 +94,8 @@ editText.addTextChangedListener(
StringCallBack { value ->
Log.d(TAG, "realString: $value")
Log.d(TAG, "realString: "+editText.text)

textView.text = CurrencyConverter.trimCommaOfString(str)
}
)
)
Expand Down

0 comments on commit ea44f13

Please sign in to comment.