Comparing two editTexts in android

前端 未结 6 1533
既然无缘
既然无缘 2020-12-22 05:01

I am learning android I tried following codeline but it\'s giving me error please give me suggestions, that how can I compare two edittext\'s text.



        
6条回答
  •  攒了一身酷
    2020-12-22 05:27

    if you want to check edt1, edt4, edt7 have "X" value then try this..

    if((edt1.getText().toString().equalsIgnoreCase("X")     
                   &&edt4.getText().toString().equalsIgnoreCase("X") && 
                  edt7.getText().toString.equalsIgnoreCase("X"))
    

提交回复
热议问题