AHilberink Well-Known Member Licensed User Longtime User Aug 27, 2014 #1 Hi, I am using White as Background. Is there a way to change the lines of de EditText fields to a different color? On black background the lines are visible (grey), but on white they aren't because of the color. Best regards, André
Hi, I am using White as Background. Is there a way to change the lines of de EditText fields to a different color? On black background the lines are visible (grey), but on white they aren't because of the color. Best regards, André
AHilberink Well-Known Member Licensed User Longtime User Aug 27, 2014 #3 udg said: EditText.TextColor Click to expand... Hi, Thanks, but this only changes the textcolor. Not the line visible to show the size and position of the field intself. This is still Grey. Best regards, André Upvote 0
udg said: EditText.TextColor Click to expand... Hi, Thanks, but this only changes the textcolor. Not the line visible to show the size and position of the field intself. This is still Grey. Best regards, André
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2014 #4 The only way to change the cursor color is by defining the EditText in a XML file: http://www.b4x.com/android/forum/posts/268235/ Upvote 0
The only way to change the cursor color is by defining the EditText in a XML file: http://www.b4x.com/android/forum/posts/268235/
udg Expert Licensed User Longtime User Aug 27, 2014 #5 Hi André, sorry to have misread your post. Obviously the "lines" you were referring to were graphical lines rather than lines of text in a multi-line text box. As Erel already explained, you need to operate on the XML file to solve your problem. udg Upvote 0
Hi André, sorry to have misread your post. Obviously the "lines" you were referring to were graphical lines rather than lines of text in a multi-line text box. As Erel already explained, you need to operate on the XML file to solve your problem. udg
AHilberink Well-Known Member Licensed User Longtime User Aug 27, 2014 #6 udg said: Hi André, sorry to have misread your post. Obviously the "lines" you were referring to were graphical lines rather than lines of text in a multi-line text box. As Erel already explained, you need to operate on the XML file to solve your problem. udg Click to expand... Thanks. I never worked on the XML file, so I don't know how. I will study this for the next time. For now I will change the background. If it is very easy to change through the XML file: are you willing to give a short instruction/example? Best regards, Andre Upvote 0
udg said: Hi André, sorry to have misread your post. Obviously the "lines" you were referring to were graphical lines rather than lines of text in a multi-line text box. As Erel already explained, you need to operate on the XML file to solve your problem. udg Click to expand... Thanks. I never worked on the XML file, so I don't know how. I will study this for the next time. For now I will change the background. If it is very easy to change through the XML file: are you willing to give a short instruction/example? Best regards, Andre
Erel B4X founder Staff member Licensed User Longtime User Aug 28, 2014 #7 It is not complicated however it does require some work. See the example in the library: http://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add android:textCursorDrawable:="@null" to the text view element. It will cause the cursor to be the same color as the text. Upvote 0
It is not complicated however it does require some work. See the example in the library: http://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add android:textCursorDrawable:="@null" to the text view element. It will cause the cursor to be the same color as the text.
KMatle Expert Licensed User Longtime User Aug 28, 2014 #8 You could add a label (1-2dip high - same width) under the edittext (like a line) to show the dimensions of it or a label behind it (1-2dip larger) to create some sort of a border effect. Upvote 0
You could add a label (1-2dip high - same width) under the edittext (like a line) to show the dimensions of it or a label behind it (1-2dip larger) to create some sort of a border effect.
AHilberink Well-Known Member Licensed User Longtime User Aug 28, 2014 #9 Klaus Matle said: You could add a label (1-2dip high - same width) under the edittext (like a line) to show the dimensions of it or a label behind it (1-2dip larger) to create some sort of a border effect. Click to expand... Thanks. That's a lot of work, but it is an option. I will try this. Upvote 0
Klaus Matle said: You could add a label (1-2dip high - same width) under the edittext (like a line) to show the dimensions of it or a label behind it (1-2dip larger) to create some sort of a border effect. Click to expand... Thanks. That's a lot of work, but it is an option. I will try this.
AHilberink Well-Known Member Licensed User Longtime User Aug 28, 2014 #10 Erel said: It is not complicated however it does require some work. See the example in the library: http://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add android:textCursorDrawable:="@null" to the text view element. It will cause the cursor to be the same color as the text. Click to expand... Thanks. I downloaded the example. As I understood there is no GUI to build the layout anymore. 2 questions: - How do I convert my existing BAL file? - How can I see/edit my layout without GUI? Best regards, André Upvote 0
Erel said: It is not complicated however it does require some work. See the example in the library: http://www.b4x.com/android/forum/threads/xmllayoutbuilder-load-xml-layouts.33762/ You need to add android:textCursorDrawable:="@null" to the text view element. It will cause the cursor to be the same color as the text. Click to expand... Thanks. I downloaded the example. As I understood there is no GUI to build the layout anymore. 2 questions: - How do I convert my existing BAL file? - How can I see/edit my layout without GUI? Best regards, André
Erel B4X founder Staff member Licensed User Longtime User Aug 28, 2014 #11 You don't need to convert all the layout to XML. Create a simple XML layout with the EditText and then the view and add it to the existing layout. Upvote 0
You don't need to convert all the layout to XML. Create a simple XML layout with the EditText and then the view and add it to the existing layout.