I used setEnabled (false) to set it inactive, but it does not work. and after this method, the value of RadioGroup.IsEnabled () is false. The value has been changed.
The code is in the Android programming guide. Ps: Spinner component uses setEnabled (false).
as follows:
package com.example.testviews;
import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.RadioGroup; public class TestRadioGroup extends Activity { @Override public void onCreate(Bundle savedInstanceState) {
}
source share