Ok, I'm not great at explaining this as I'm new to Android so work with me. I have tried everything I can find and I dont know how to make everything work together. I have a Spinner to select an age group, a Radio group with Radio buttons to allow you to select Gender (male or female), I have an EditText that I will allow for numerical input and a Textview out to the side that is currently blank.
Depending on which age group is selected from the spinner and which one of the Radio buttons are selected - setText of the TextView to a certain number based on what number is entered in the EditText box.
Ive tried using OnItemSelectedListener for the spinner but havent been able to find how it knows what is selected from the array.I tried getItemSelected with an if statement with the item from the array
for the radio button Ive tried using an if statement - if (radiobutton.isChecked()) but I didnt know if I needed an ifCheckedRadio before this and how to make it work after the spinner
and if all of this worked I had if (EditText.getText().equals("#")) TextView.setText("#");
This will be copied for each possible # entered
now would the text change like this without a button and OnClickListener or is there a way to do this without a button becuase there will more than one EditText that will be added at the end using a button but I wanted this displayed immediately after it is entered
Sorry if this isnt clear, please let me know if you need more information. If I've overlooked a previous question that uses spinners and radiobuttons please let me know and I'll keep looking but I've been stuck on this.