Greum
Well-Known Member
I have a constraint layout with a RadioGroup consisting of 3 RadioButtons which will usually be displayed horizontally. Under certain circumstances I want the buttons to be displayed vertically.
I have the following code:
which gives Cannot resolve symbol on VERTICAL.
I'm not sure how to resolve this. Can anyone help, please?
I have the following code:
Java:
RadioGroup rg = findViewById(R.id.radioGroup);
rg.setOrientation(ConstraintLayout.VERTICAL);
I'm not sure how to resolve this. Can anyone help, please?