Android Question Panel & EditText (long question)

metrick

Active Member
Licensed User
Longtime User
I designed layout with designer & with via code
layout contains two panels 1 top panel & 2 Bot panel.
Top panel contains 20 EditTexts and 20 Buttons created via designer
Bot panel contains only edittext vary from 3 to 45 , editText is created via code only
1. if after loading Activity and perform the following code, it will count EditText on pnlTop correctly.
B4X:
for i = 0 To pnlTop.NumberOfViews - 1
   If pnlTop.GetView(i) Is EditText Then
       intE = intE + 1 
   End If
Next
(intE=20)
2. However, if I call a sub to fill all EditText Boxes in the pnlTop & pnlBot from SQL data and perform EditText counts again. The pnlTop always show intE =0 and correct data are filled in each EditText box, but the pnlBot always show correct number of boxes, which vary from 3 to 45 EditText.

3. I have tried EditText.forcedonebutton = true
I have tried invalidate pnlTop, also invalidate each EditText after each data if filled from SQL data.
Sitting on this problems for several hours now with no solution.
Any advice would be much appreciated. Thanks.
 
Top