Android Question Textbox border and color

pliroforikos

Active Member
Licensed User
Goodday to all
I'm trying to make something like this with my text boxes. White border and text without the line underneath


but i'm only did this:


The first textbox is B4XFloatTextField which it has attributes for border and colors in designer


the second is a simple EditText field which it hasn't attributes

Is there any solution?
Thank you
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

pliroforikos

Active Member
Licensed User
The Sub SetBackgroundTintList(View As View,Active As Int, Enabled As Int)

expecting a View not a B4XFloatTextField and i cant declare it as B4XView so i cant use it to make underneath line as transparent. Any other solution for B4XFloatTextField ?

TextField.mBase.SetColorAndBorder works as expected only for base panel.
 
Upvote 0

pliroforikos

Active Member
Licensed User
Thank you both. Now it works perfect and i tested the code below which is working as well

B4X:
Sub SetTextfields
    For Each v As View In Root.GetAllViewsRecursive
        If v Is EditText Then
            B4XPages.MainPage.SetBackgroundTintList(v, Colors.Transparent, Colors.Transparent)
        End If
    Next
End Sub

Thank you very much both and i wish you happy and covid free new year.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…