Kevin Hartin Active Member Licensed User Longtime User Oct 3, 2021 #1 I am building a simple POS for the local Samoan market and are dynamically creating buttons based on user selected preferences on the grid size. This works great and I have images attached to the buttons (made of a panel, label and imageview) working fine, however because of the variables in terms of grid layout I was hoping to use the image as a B4XimageView and set the resizemode to FILL_NO_DISTORTIONS, but when I do this I find that my resizing of the ImageView is no longer allowed nor can I set the Visibility of the ImageView. Is there a way that I can continue to do this while using B4XimageView? I can do what I need using the depreciated FillImageToView sub in https://www.b4x.com/android/forum/threads/b4x-xui-fill-and-fit-images-without-distortion.86627/ but want to move to a better Cross platform solution if possible. Thanks, Kev Last edited: Oct 3, 2021
I am building a simple POS for the local Samoan market and are dynamically creating buttons based on user selected preferences on the grid size. This works great and I have images attached to the buttons (made of a panel, label and imageview) working fine, however because of the variables in terms of grid layout I was hoping to use the image as a B4XimageView and set the resizemode to FILL_NO_DISTORTIONS, but when I do this I find that my resizing of the ImageView is no longer allowed nor can I set the Visibility of the ImageView. Is there a way that I can continue to do this while using B4XimageView? I can do what I need using the depreciated FillImageToView sub in https://www.b4x.com/android/forum/threads/b4x-xui-fill-and-fit-images-without-distortion.86627/ but want to move to a better Cross platform solution if possible. Thanks, Kev
TILogistic Expert Licensed User Longtime User Oct 4, 2021 #2 see resize: Attachments B4XImageViewExample.zip B4XImageViewExample.zip 130.8 KB · Views: 467 Upvote 1
Kevin Hartin Active Member Licensed User Longtime User Oct 4, 2021 #3 oparra said: see resize: View attachment 119857 Click to expand... Thanks mate, I didn't know of the mbase... all good now Kev Upvote 0
oparra said: see resize: View attachment 119857 Click to expand... Thanks mate, I didn't know of the mbase... all good now Kev