L lolivier New Member Jan 8, 2017 #1 Hello, i want know how to create an entity with a button. For example, if i push a button 3 times, so i create 3 entity. thanks for your help
Hello, i want know how to create an entity with a button. For example, if i push a button 3 times, so i create 3 entity. thanks for your help
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2017 #2 What do you mean with entity? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 10, 2017 #4 I recommend you to start with the beginner's guide: https://www.b4x.com/android/documentation.html B4X: Sub Button1_Click For i = 1 To 3 Dim iv As ImageView iv.Initialize("") Activity.AddView(iv, 10dip, 10dip + 100dip * (i - 1), 100dip, 100dip) iv.Bitmap = LoadBitmap(...) Next End Sub Upvote 0
I recommend you to start with the beginner's guide: https://www.b4x.com/android/documentation.html B4X: Sub Button1_Click For i = 1 To 3 Dim iv As ImageView iv.Initialize("") Activity.AddView(iv, 10dip, 10dip + 100dip * (i - 1), 100dip, 100dip) iv.Bitmap = LoadBitmap(...) Next End Sub