I have two panels, one contains a large EditText and the other contains 2 small EditTexts and a CheckBox. I want to change the color of the EditTexts so run the following code in the Activity_Create:
When the program runs, the first, large EditText does not fill the width. If I click on it and slide my finger across, it then draws correctly.
Attached are two screen grabs. The first is the incorrect one, the second is how it should look.
Any ideas to correct this?
Thanks, Colin
B4X:
Dim cd As ColorDrawable
cd.Initialize(Colors.White,0) 'white background of text box
edtNote.Background=cd
edtInitials.Background=cd
edtBarcode.Background=cd
When the program runs, the first, large EditText does not fill the width. If I click on it and slide my finger across, it then draws correctly.
Attached are two screen grabs. The first is the incorrect one, the second is how it should look.
Any ideas to correct this?
Thanks, Colin