Disabling The Send Button When The EditText is Empty
buttonSend.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
if (!(editTextUserName.getText().toString().equalsIgnoreCase(""))) {
Intent intent = new Intent();
//Package Name(com.cineplexbd.movieticket)
intent .setClassName("com.cineplexbd.movieticket",
"com.cineplexbd.movieticket.NextActivity");
context.startActivity(intent )
}
else {
Toast.makeText(getApplicationContext(),
"Please Enter The User Name.)", Toast.LENGTH_LONG)
.show();
}
}
});
No comments:
Post a Comment