Code example for RadioGroup

Methods: getChildAtcheck

0
            if (location != null) {
                nameEditText.setText("fence");
                latitudeEditText.setText(location.getLatitude() + "");
                longitudeEditText.setText(location.getLongitude() + "");
                radiusEditText.setText("500");
                typeRadioGroup.check(typeRadioGroup.getChildAt(0).getId());
            } 
        } 
    } 
 
    @Override 
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fences_detail, container, false);
        nameEditText = (EditText) view.findViewById(R.id.fence_detail_name);
        latitudeEditText = (EditText) view.findViewById(R.id.detailLat);
        longitudeEditText = (EditText) view.findViewById(R.id.detailLon);
        radiusEditText = (EditText) view.findViewById(R.id.detailRadius);
        typeRadioGroup = (RadioGroup) view.findViewById(R.id.detailType);
        typeRadioInclusive = (RadioButton) view.findViewById(R.id.detailTypeInclusive);
        saveButton = (Button) view.findViewById(R.id.saveButton);
Stop searching for code, let great code find you!  Add Codota to your java IDE