Can I attach a TextChanged Lisener to the EditText in the dialog ?

marxchantemarxchante MXMember
edited January 2017 in Xamarin.Android

I have the next code, but it isn't works:

       var inputView = LayoutInflater.Inflate(Resource.Layout.QualityReleaseProductionTenterInspection, null);
        _dlgInspection = new AlertDialog.Builder(this);
        _dlgInspection.SetTitle("Agregar Inspección");
        _dlgInspection.SetView(inputView);
        _dlgInspection.SetPositiveButton("Guardar", _dialogPositiveButton_Click);
        _dlgInspection.SetNegativeButton("Cancel", delegate { _dlgInspection.Dispose(); });
        dialog = _dlgInspection.Create();
        _txtWarpStiffnessEdge1  = (EditText)FindViewById(Resource.Id.txtQualityReleaseProductionInspectionEdgeA);
        _txtWarpStiffnessEdge2  = (EditText)FindViewById(Resource.Id.txtQualityReleaseProductionInspectionEdgeB);
        _txtWarpStiffnessCenter = (EditText)FindViewById(Resource.Id.txtQualityReleaseProductionInspectionCenter);


        _txtWarpStiffnessEdge1.TextChanged += _txtWarpStiffnessEdge1_TextChanged;
        _txtWarpStiffnessEdge2.TextChanged += _txtWarpStiffnessEdge2_TextChanged;
        _txtWarpStiffnessCenter.TextChanged += _txtWarpStiffnessCenter_TextChanged;

_txtWarpStiffnessEdge1, _txtWarpStiffnessEdge2 and _txtWarpStiffnessCenter are nulls, but the ids are rights.

Can someone help me?

Answers

  • marxchantemarxchante MXMember

    El layout que estoy insertando tiene el siguiente código:
    <?xml version="1.0" encoding="utf-8"?>









Sign In or Register to comment.