you don’t need onClickListener
for EditText
, it is mainly needed for buttons. For EditText you can use setOnTouchListener
. Then in onTouch
check whether previous fields are filled. If not, show error else do the calculation.
Read the basics first before trying to develop any app otherwise you will miss many important concepts.
2
solved Using onClickListerner() on EditText in Android [closed]