how to highlight a input field in an android application in java
<p>i am working on an android application registration page(in java language) where it contains 13 fields. i have done validation to all the fields and its working fine with toast messages. but my requirement is if any field raises a toast message then that field should be highlighted. here is my sample code  </p>

<pre><code>                  if (driverName.length() &lt;= 0) {

                        Toast.makeText(ApplicationActivity.this, "Enter first name", Toast.LENGTH_LONG).show();


                    } else if (firname) {
                        Toast.makeText(ApplicationActivity.this, "please enter the first name correctly", Toast.LENGTH_LONG).show();

                    } else if (driverName_last.length() &lt;= 0) {
                        Toast.makeText(ApplicationActivity.this, "Enter last name", Toast.LENGTH_LONG).show();

                    } else if (secname) {
                        Toast.makeText(ApplicationActivity.this, "please enter last name correctly", Toast.LENGTH_LONG).show();

                    } else if (fatherName.length() &lt;= 0) {
                        Toast.makeText(ApplicationActivity.this, "Enter father name", Toast.LENGTH_LONG).show();

                    } else if (fathername) {
                        Toast.makeText(ApplicationActivity.this, "please enter father name correctly", Toast.LENGTH_LONG).show();

                    } 
</code></pre>

<p>thanks in advance</p>