Use the below
if (tipe.equals("item2")){ // .equals to compare strings
edittext.setVisibiluty(View.INVISIBLE); //set the visibility
}
Use the below according to your needs
visible 0 Visible on screen; the default value.
invisible 1 Not displayed, but taken into account during layout (space is left for it).
gone 2 Completely hidden, as if the view had not been added.
http://developer.android.com/reference/android/view/View.html#setVisibility(int)