Was wondering if I could define the onCheckChanged
method in the layout xml file in android for a RadioGroup
? As it stands I have done this programmatically with
rgroup.setOnCheckedChangeListener(this);
followed by coding my onCheckedChanged()
method, and it works perfectly as intended. Again, just wondering if I could do it in the XML similar to a Button
, (android:onClick=methodName
)