I am using the FloatLabeledEditText view and have set the Base Background to ColorDrawable = White (#FFFFFFFF) and the Border Color = Black (#FF000000), but when i run it the view is transparent with no border. Pl's see attached screen shot. I set the values in the designer and am using the views in a save dialog.
What I wish to do is:
Make the background of the edit box white alpha = 1.0
Make the border visible, width 2dpi and color dark gray
Make the cursor black
Make the cancel and save button text larger, bold and black
I need this as the phone is being used in the vegetable garden in sunlight and thus needs good contrast.
Have you taken a look at B4XFloatTextField customview in XUI Views library. It is a much newer version of FloatLabel. You can set many of its properties via designer and programmatically. You can also expose the native edittext like this: For instance:
B4X:
Dim et As EditText = B4XFloatTextField1.TextField 'expose native view to give it a nice full border and rounded corner
Dim cd As ColorDrawable
cd.initialize2(XUI.Color_ARGB(1,255,255,255),10dip, 5dip,XUI.Color_DarkGray)
et.Background=cd
Have you taken a look at B4XFloatTextField customview in XUI Views library. It is a much newer version of FloatLabel. You can set many of its properties via designer and programmatically. You can also expose the native edittext like this: For instance:
B4X:
Dim et As EditText = B4XFloatTextField1.TextField 'expose native view to give it a nice full border and rounded corner
Dim cd As ColorDrawable
cd.initialize2(XUI.Color_ARGB(1,255,255,255),10dip, 5dip,XUI.Color_DarkGray)
et.Background=cd
The Visible and Enabled Properties can be set in designed for these views, but these properties don't seem to be available in the code? Am I missing somethin?