iOS Question CustomListView properties control

zak

Member
Licensed User
Longtime User
Might sound like a rookie question but how to control the Top, Left and Height of a CustomListView from the code. I mean :
Dim clv1 CustomListView
.
.
.
clv1.Left gives an error
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Why do you want to change it by code? Everything is simpler when it is done from the designer. If you do want to change its position at runtime then you need to change the base view position:
B4X:
clv.GetBase.SetLayoutAnimated(...)

Note that the position will be reset when the screen size changes so you need to either disable the "Handle resize event" in the layout file or change the position in the page resize event.
 
  • Like
Reactions: zak
Upvote 0
Top