@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
int int1 = editText.getText().toString().length();
int int2 = currentWord.getEnglishWord().toString().length();
String string1 = editText.getText().toString();
String string2 = currentWord.getEnglishWord();
if(string1.length() == string2.length());
{
if(editText.getText().toString().equals(currentWord.getEnglishWord()))
{
Toast.makeText(getContext(), "WIIIIIIN!!!!", Toast.LENGTH_SHORT).show();
}else
{
int g =int1 + int2;
string1 +=string2;
Toast.makeText(getContext(), "LOOOOSE!!!!", Toast.LENGTH_SHORT).show();
}
}
}