cklester Well-Known Member Licensed User Nov 3, 2020 #1 B4X: Dim p As B4XView = xui.CreatePanel("") p.SetLayoutAnimated(0,0,0,100%x,30dip) I'm getting an error on the p.SetLayoutAnimated() for the 100%x part. It is telling me "Unknown member: perxtocurrent" I'm using the code found in the xCustomListViews tutorial, but I'm sure I've goofed somewhere. What am I missing?
B4X: Dim p As B4XView = xui.CreatePanel("") p.SetLayoutAnimated(0,0,0,100%x,30dip) I'm getting an error on the p.SetLayoutAnimated() for the 100%x part. It is telling me "Unknown member: perxtocurrent" I'm using the code found in the xCustomListViews tutorial, but I'm sure I've goofed somewhere. What am I missing?
EnriqueGonzalez Well-Known Member Licensed User Longtime User Nov 3, 2020 #2 in b4j there is no %x you can use the parent width with the method prefWidth of the pane (mainform.rootpane for example) or any other. Upvote 0
in b4j there is no %x you can use the parent width with the method prefWidth of the pane (mainform.rootpane for example) or any other.
cklester Well-Known Member Licensed User Nov 3, 2020 #3 Enrique Gonzalez R said: in b4j there is no %x you can use the parent width with the method prefWidth of the pane (mainform.rootpane for example) or any other. Click to expand... Ah, so I missed that @Erel 's example in the tutorial was for B4A! Thanks, @Enrique Gonzalez R ! Upvote 0
Enrique Gonzalez R said: in b4j there is no %x you can use the parent width with the method prefWidth of the pane (mainform.rootpane for example) or any other. Click to expand... Ah, so I missed that @Erel 's example in the tutorial was for B4A! Thanks, @Enrique Gonzalez R !