Android Question [Solved] Edittext: SetBackgroundTintList and (back)color

Pflichtfeld

Active Member
Licensed User
Using Erels nice codesnippet on edittext-views I get strange behaviour, when setting the color of the edittext:
(gv is a class)
B4X:
    txtJig.TextColor=gv.ColorJig
    gv.SetTextboxTintList(txtJig,gv.ColorJig)
    txtJig.Color=gv.ColorTextboxBackGround
setTextboxTintList starts with
B4X:
Sub SetTextboxTintList(View As View,colActive As Int)
        Dim colEnabled=colActive As Int

screenshots:
textbox.png
upper: code unchanged
second: SetTextboxtintList commented
lower: txtjig.color commented

Is it possible, to set the (back)color of the edittext AND use setTextboxTintList?
 

Pflichtfeld

Active Member
Licensed User
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
Top