Android Question Syntax for setting edittext properties

Ajay Kakar

Member
Licensed User
Longtime User
Hi, Is there any set documentation for edittext properties? eg . I know that there is a background property that can be set, but what is the correct syntax. Any examples and documentation available anywhere. I have spent uite a bit of time searching.. but have not got any.

Ajay
 
I found the documentation but still does not help me. It does not tell me how I can set the "edittext.background" element. It says edittext.color is to be set as an Integer. But what integer values? What do the represent. Some examples would be highly appreciated.

Ajay
 
Upvote 0
I figured out edittext.color by using the colors object eg is edittext.color = color.gray Now trying to figure out how to make rounded corners.

Ajay
 
Upvote 0
Code: Copy
Dim txtTest As EditText
Dim cd As ColorDrawable
cd.Initialize(Colors.Gray,15)   '15 is the corner radius. You can change the value
txtTest.Background=cd
 
Upvote 0
Back
Top