A Ajay Kakar Member Licensed User Longtime User Jul 26, 2014 #1 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
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
A Ajay Kakar Member Licensed User Longtime User Jul 26, 2014 #2 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 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
A Ajay Kakar Member Licensed User Longtime User Jul 26, 2014 #3 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
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
M Mahares Expert Licensed User Longtime User Jul 26, 2014 #4 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
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
Erel B4X founder Staff member Licensed User Longtime User Jul 28, 2014 #5 Note that it should be 15dip instead of 15. Upvote 0