开发者

Want a button to not appear in Android if a file size is over 1 KB

开发者 https://www.devze.com 2023-03-18 22:45 出处:网络
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 filessize is easy and I can check this condition usin

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);

0

精彩评论

暂无评论...
验证码 换一张
取 消