i wanna ask about how can i do an if-statement using the code below? I have tried it and it give me an error; its say cannot convert void to bool. any suggestion?
if(images.setVisibility(View.GONE)){
Display();
}
You can simply use below of the two codes:
if(images.getVisibility==view.GONE) { Display(); }
the getVisibility() returns an integer.
you can also check with the integer code
i.e.
VISIBLE-0
GONE-8
INVISIBLE-4
2.
if(images.getVisibility==0)
//VISIBLE
if(images.getVisibility==4)
//INVISIBLE
if(images.getVisibility==8)
//GONE