Android Question How to refer to a b4xview such as label inside a BBCodeView or BBListItem?

Hanz

Active Member
Hello,

If I put a b4xview, e.g., a label, inside a bbcodeview or bblistitem like this, [View=b4xiv/], how can I refer to it if I wanted to access it later when the bbcodeview is inside a customlistview?

I can get the index of listview's item with the following code:
B4X:
Dim bb As BBListItem = Sender
Dim index As Int = CustomListView1.GetItemFromView(bb.mBase)

But I don't know what is next?
 

Hanz

Active Member
You can get the Map of views with bb.Views. You can then get the view based on the key that you previously used.
Am I supposed to get something like this when I call the bb.Views?
B4X:
(MyMap) {btn=android.widget.Button{29e9402 VFED..C. ........ 303,270-503,350 #c8}, b4xiv=anywheresoftware.b4a.BALayout{2a29d113 V.E..... ........ 4,0-104,100 #c9}}
I have a button with key "btn" and an imageview "b4xiv".
 
Upvote 0
Top