CSC 349: The Week beginning Sept. 4 |
android:inputType="numberDecimal"
double bill = Double.parseDouble(etBill.getText().toString());
etBill.addTextChangedListener(new TextWatcher() {
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
public void afterTextChanged(Editable editable) {
/>
final RadioGroup rgTip = (RadioGroup) findViewById(R.id.rgTip);
int radio_id = rgTip.getCheckedRadioButtonId();
RadioButton myRad = (RadioButton) findViewById(radio_id);