Hi,
in 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.
Did someone have a similar problems? Any suggestion, what to do?
Code for initialization of Buttons:
b1.Initialize("b1")
Activity.AddView(b1, 68%x, 20%y - 60dip, 10%x, 50dip)
b1.text = "1"
b2.Initialize("b2")
Activity.AddView(b2, 78%x, 20%y - 60dip, 10%x, 50dip)
b2.text = "2"
b3.Initialize("b3")
Activity.AddView(b3, 88%x, 20%y - 60dip, 10%x, 50dip)
b3.text = "3"
b4.Initialize("b4")
Activity.AddView(b4, 800dip, 10%y - 60dip, 10%x, 50dip)
b4.text = "4"
b5.Initialize("b5")
Activity.AddView(b5, 78%x, 10%y - 60dip, 10%x, 50dip)
b5.text = "5"
b6.Initialize("b6")
Activity.AddView(b6, 88%x, 10%y - 60dip, 10%x, 50dip)
b6.text = "6"
b7.Initialize("b7")
Activity.AddView(b7, 68%x, 30%y - 60dip, 10%x, 50dip)
b7.text = "7"
in 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.
Did someone have a similar problems? Any suggestion, what to do?
Code for initialization of Buttons:
b1.Initialize("b1")
Activity.AddView(b1, 68%x, 20%y - 60dip, 10%x, 50dip)
b1.text = "1"
b2.Initialize("b2")
Activity.AddView(b2, 78%x, 20%y - 60dip, 10%x, 50dip)
b2.text = "2"
b3.Initialize("b3")
Activity.AddView(b3, 88%x, 20%y - 60dip, 10%x, 50dip)
b3.text = "3"
b4.Initialize("b4")
Activity.AddView(b4, 800dip, 10%y - 60dip, 10%x, 50dip)
b4.text = "4"
b5.Initialize("b5")
Activity.AddView(b5, 78%x, 10%y - 60dip, 10%x, 50dip)
b5.text = "5"
b6.Initialize("b6")
Activity.AddView(b6, 88%x, 10%y - 60dip, 10%x, 50dip)
b6.text = "6"
b7.Initialize("b7")
Activity.AddView(b7, 68%x, 30%y - 60dip, 10%x, 50dip)
b7.text = "7"