Is there something in B4A like a user control in vb? i guess a custom view in the android world.
I would like to display it like business cards on top of each other like music players show albums sometimes:
Type: Owner
Name: Bobby Brown
Phone: 555-555-5555 [Call Button]
-----------------------
Type: Company
Name: Magic Corp
Phone: 555-555-5555 [Call Button]
-----------------------
Type: Buyer
Name: Bobby Brown
Phone: 555-555-5555 [Call Button]
Right now I have been using 2 functions to do this:
AddTextField(p as Panel,LabelText as string, Text as string, DataField as string)
AddPhoneField(p as Panel,LabelText as string, Text as string, DataField as string)
(Datafield is the SQLite field, so I can use the same event handler for all items, and read the .Tag property to save back data as they type)
Is there some kind of way I can do this but with the designer instead of calculating a ton of x/y values for placement?
Right now I'm using a modified version of this as Erel pointed me to before:
http://www.b4x.com/forum/basic4android-getting-started-tutorials/7221-list-two-columns-checkbox.html#post41354
I would like to display it like business cards on top of each other like music players show albums sometimes:
Type: Owner
Name: Bobby Brown
Phone: 555-555-5555 [Call Button]
-----------------------
Type: Company
Name: Magic Corp
Phone: 555-555-5555 [Call Button]
-----------------------
Type: Buyer
Name: Bobby Brown
Phone: 555-555-5555 [Call Button]
Right now I have been using 2 functions to do this:
AddTextField(p as Panel,LabelText as string, Text as string, DataField as string)
AddPhoneField(p as Panel,LabelText as string, Text as string, DataField as string)
(Datafield is the SQLite field, so I can use the same event handler for all items, and read the .Tag property to save back data as they type)
Is there some kind of way I can do this but with the designer instead of calculating a ton of x/y values for placement?
Right now I'm using a modified version of this as Erel pointed me to before:
http://www.b4x.com/forum/basic4android-getting-started-tutorials/7221-list-two-columns-checkbox.html#post41354
Last edited: