Addo Well-Known Member Licensed User Apr 12, 2021 #1 I have an image view with an image inside it, when I set ImageView Enabled To false I want to gray out the image to be marked as disabled. can I do that?
I have an image view with an image inside it, when I set ImageView Enabled To false I want to gray out the image to be marked as disabled. can I do that?
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2021 #2 Tip: in most cases it is better to use B4XImageView from XUI Views. You can use XUIViewsUtils.SetAlpha(ImageView, 0.5) to make it look disabled. You can change a color image to a greyscale image with BitmapCreatorEffects. Upvote 0
Tip: in most cases it is better to use B4XImageView from XUI Views. You can use XUIViewsUtils.SetAlpha(ImageView, 0.5) to make it look disabled. You can change a color image to a greyscale image with BitmapCreatorEffects.
Addo Well-Known Member Licensed User Apr 12, 2021 #3 well I got this error unknown Member SetAlpha i am using the latest b4x version.. Upvote 0
DonManfred Expert Licensed User Longtime User Apr 12, 2021 #4 PassionDEV said: well I got this error unknown Member SetAlpha Click to expand... are you using B4XImageView??? Upvote 0
PassionDEV said: well I got this error unknown Member SetAlpha Click to expand... are you using B4XImageView???
Addo Well-Known Member Licensed User Apr 12, 2021 #5 DonManfred said: are you using B4XImageView??? Click to expand... No, Imageview, and the error is not related to the image view it is related to XUIViewsUtils it has no member called setAlpha. Upvote 0
DonManfred said: are you using B4XImageView??? Click to expand... No, Imageview, and the error is not related to the image view it is related to XUIViewsUtils it has no member called setAlpha.
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2021 #6 Are you using B4A v10.7? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 12, 2021 #8 I forgot that the latest version was released after 10.7. You need to update XUI Views: https://www.b4x.com/android/forum/t...ss-platform-views-and-dialogs.100836/#content Upvote 0
I forgot that the latest version was released after 10.7. You need to update XUI Views: https://www.b4x.com/android/forum/t...ss-platform-views-and-dialogs.100836/#content
Peter Simpson Expert Licensed User Longtime User Apr 12, 2021 #9 Once you have updated, this will work for you... Attachments ImageView.zip 18.4 KB · Views: 86 Upvote 0