I've discovered a mistake in my software after upgrading my device from 3.2
to 4.0.4.
In version 3.2 I can check a disabled RadioButton, while in 4.0.4 disabled
RadioButton is never checked. I use the checked option only for presenting
intuitive views to the user.. but now it don't works anymore.
I have a method that disables automatically all the view inside my Layout
based on a boolean var:
public static void enableDisableView(final View view, final boolean
enabled) {
if (!(view instanceof ListView)){
view.setEnabled(enabled);
}
if ( view instanceof ViewGroup ) {
final ViewGroup group = (ViewGroup)view;
for ( int idx = 0 ; idx < group.getChildCount() ; idx++ ) {
enableDisableView(group.getChildAt(idx), enabled);
}
}
}
And in onResume of my Activity I use
radioGroup.check(R.id.radioButtonId);
When the RadioButton is disabled it is not checked anymore.
Does anyone having same issue?
Thanks Marco
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en