开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜