Want a button to not appear in Android if a file size is over 1 KB
I want to first check to see if a file is over 1 KB. If it is I want the button to be visible. If not I do not want it to be visible. Checking the files size is easy and I can check this condition using an i开发者_如何学Pythonf statement. I just do not know how to make the button visible and invisible.
Thanks for your help
Can I hide an image button on a layout, (dimensions and background) until a call to set visible?
myImageButton.setVisibility(View.Gone);
myImageButton.setVisibility(View.Visible);
myImageButton.setVisibility(View.Invisible);
精彩评论