I have a vertical layout of 4 Edit Text numeric inputs and 4 Radio uttons to determine the required solution of an equation with a button to perform the calculation.
Edit Text input a ,
Edit Text input b ,
Edit text input c ,
Edit Text input d ,
Radio Button solve for a ,
Radio Button solve for b ,
Radio Button solve for c ,
Radio Button solve for d ,
Button Calculate
If solve for a is selected then Edit Text a is not required, if solve for b is selected then Edit Text b is not required and the same for c & d.
Can the corresponding Edit Text be disabled on selection of the Radio Button or do I need to provide a separate Layout for each selection. Everything works fine and the result is correct . I can ignore the input that is not required within the main activity but it does not seem to be the correct answer.
I am very much a beginner and I am surprised I have got this far to date. Can anyone please help.Many thanks to anyone who can help.
Try following way,