如何使条件忽略大写锁定?我想改变:
if ( Name.contains ( layout.txtName.getText ().toString () ) )
并让它忽略大写。
case R.id.Contane:
if (Name.contains(layout.txtName.getText().toString()))
{
AlertDialog.Builder alert = new AlertDialog.Builder(MainActivity.this);
alert.setTitle("this is the first resulet for the name that you typed");
alert.setMessage("The contact "+Name+" was found in this phone... yaah");
alert.setPositiveButton("ok",new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i)
{
}
});
alert.show();
Found = true;
break;