iOS Question Bitmap Async with Customview

stevenindon

Active Member
Licensed User
Hello All,
I have been working on this project that requires both Android and IOS. Customer wanted to list their products in the app and i have been building
the product listing base on the beautiful BitmapAsync from : https://www.b4x.com/android/forum/threads/b4x-bitmapsasync.119589/#content

I have downloaded BitmapAsync example as my base to build the product listing (*Putting the Customlistview into my own Customview - Trying to modularize everything)

The issue here is :

I am able to add panels and into Customlistview (* List Orientation - Vertical)
but when i set Customlistview - Orientation to Horizontal, Nothing appears. (*I need it to work on Horizontal)

Please find attached small project example. (*Everything runs well in Android BUT not in IOS)

Please download project : https://www.techiesworld.net/B4X_ITEMLIST.zip (Attachment is a little too big to upload here)
 
It looks like a bug in PreoptimizedCLV. I need to further check it.


Tip 1:
Code:
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
    mBase = Base
    Tag = mBase.Tag
    mBase.Tag = Me
    CallSubDelayed2(Me, "AfterLoadLayout", Props)
End Sub

Private Sub AfterLoadLayout(Props As Map)
    mBase.Color=xui.Color_Transparent
End Sub
Simpler:
Code:
Public Sub DesignerCreateView (Base As Object, Lbl As Label, Props As Map)
    mBase = Base
    Tag = mBase.Tag
    mBase.Tag = Me
   Sleep(0)
    mBase.Color=xui.Color_Transparent
End Sub

Tip 2: It will be simpler to use SimpleMediaManager instead of BitmapsAsync. It is however not related to this issue.
 
Upvote 0
Thank you so very much Erel. Estimate when can this PreoptimizedCLV bug be fixed? Sorry have rush you on this as we have dateline to complete this project.
* The bug only exist with B4i. In B4A android is working fine.

Else we will have to find other alternatives..?... ? ?

p/s: Ohh thanks for the above Simpler trick
 
Upvote 0
Erel,

Wow! Super fast erel.. Thanks. Tested on horizontal - everything works as expected.

Such a great support. Not only that i love B4A/B4i, the whole team and company is so very responsive. * Made the right choice why i ditch Flutter and changed to B4i/B4A

Thanks B4A/B4i Team!
 
Upvote 0
Back
Top