samedi 31 décembre 2016

if a buttons text is empty, then

In this code I want to make a buttons visibility gone, if the text of the button is "":

        if (button TEXT IS "")
    {
        button.setVisibility(View.GONE);
    }    

    else 
    {

        button.setVisibility(View.VISIBLE);
    }   

How can I form the if-Statement to get a result? Thank you!

Aucun commentaire:

Enregistrer un commentaire