_:nad2171f79b254a0c9492090ff447d0e8xb1
<http://schema.org/text>
"Hi,\n\nin order to avoid use of soft nmeric keyboard, i created and initialized in activity 10 buttons. They are in a form of 3x3 matrix with button for zero in bottom. Problem, that i have is, that only first line of buttons is responsive on click. When i changed position of them, again only first line is responding. In sample code below i changed on-screen position of buttons, in this case button_click event is fireing with b4-b6 buttons, because they are positioned higher than button b1-b3.\n\nDid someone have a similar problems? Any suggestion, what to do?\n\n\nCode for initialization of Buttons:\nb1.Initialize(\"b1\")\nActivity.AddView(b1, 68%x, 20%y - 60dip, 10%x, 50dip)\nb1.text = \"1\"\nb2.Initialize(\"b2\")\nActivity.AddView(b2, 78%x, 20%y - 60dip, 10%x, 50dip)\nb2.text = \"2\"\nb3.Initialize(\"b3\")\nActivity.AddView(b3, 88%x, 20%y - 60dip, 10%x, 50dip)\nb3.text = \"3\"\nb4.Initialize(\"b4\")\nActivity.AddView(b4, 800dip, 10%y - 60dip, 10%x, 50dip)\nb4.text = \"4\"\nb5.Initialize(\"b5\")\nActivity.AddView(b5, 78%x, 10%y - 60dip, 10%x, 50dip)\nb5.text = \"5\"\nb6.Initialize(\"b6\")\nActivity.AddView(b6, 88%x, 10%y - 60dip, 10%x, 50dip)\nb6.text = \"6\"\nb7.Initialize(\"b7\")\nActivity.AddView(b7, 68%x, 30%y - 60dip, 10%x, 50dip)\nb7.text = \"7\""
<https://www.b4x.com/android/forum/threads/problems-with-button-click-event.50780/>