Pflichtfeld Active Member Licensed User May 14, 2020 #1 Using Erels nice codesnippet on edittext-views I get strange behaviour, when setting the color of the edittext: (gv is a class) B4X: Copy txtJig.TextColor=gv.ColorJig gv.SetTextboxTintList(txtJig,gv.ColorJig) txtJig.Color=gv.ColorTextboxBackGround setTextboxTintList starts with B4X: Copy Sub SetTextboxTintList(View As View,colActive As Int) Dim colEnabled=colActive As Int screenshots: upper: code unchanged second: SetTextboxtintList commented lower: txtjig.color commented Is it possible, to set the (back)color of the edittext AND use setTextboxTintList?
Using Erels nice codesnippet on edittext-views I get strange behaviour, when setting the color of the edittext: (gv is a class) B4X: Copy txtJig.TextColor=gv.ColorJig gv.SetTextboxTintList(txtJig,gv.ColorJig) txtJig.Color=gv.ColorTextboxBackGround setTextboxTintList starts with B4X: Copy Sub SetTextboxTintList(View As View,colActive As Int) Dim colEnabled=colActive As Int screenshots: upper: code unchanged second: SetTextboxtintList commented lower: txtjig.color commented Is it possible, to set the (back)color of the edittext AND use setTextboxTintList?
Erel B4X founder Staff member Licensed User Longtime User May 15, 2020 #2 What are you trying to do? Upvote 0
Pflichtfeld Active Member Licensed User May 15, 2020 #3 I would like to set the color of the underline with setTextboxTintList AND set the backgroundcolor of the edittext. From the screenshots: Combine lower and middle layout. Upvote 0
I would like to set the color of the underline with setTextboxTintList AND set the backgroundcolor of the edittext. From the screenshots: Combine lower and middle layout.
Erel B4X founder Staff member Licensed User Longtime User May 17, 2020 #4 You can always put the EditText inside a panel and change the panel's color. Upvote 0
Pflichtfeld Active Member Licensed User May 22, 2020 #5 Thank you for the workaround, Erel!! Upvote 0