I have the following code:
EditText edit = (EditText) findViewById(R.id.bluetractor);
if (edit.getText().toString().equals("Blue Tractor"))
{
Toast.makeText(getApplicationContext(), "Correct", Toast.LENGTH_LONG).show();
}
else
{
edit.setError("Incorrect");
}
But when I click the button that executes the code, it all works well apart from the fact the writing (the "Incorrect") appears to be white and therefore it is not visible on the white background of the error popup. Can anyone help? Thanks