Android Question button display

Robert_Poland

Member
Licensed User
Hello

it needs hints
how to make a button display depending on whether the text edit is something typed
if the button is visible, if not then you can not see the button

thx
 

DonManfred

Expert
Licensed User
Longtime User
Set the button to invisible at designtime

B4X:
Sub EditText1_TextChanged (Old As String, New As String)
    If New.Trim <> "" Then
        Button1.Visible = True
    Else
        Button1.Visible = False
    End If
   
End Sub
 
Upvote 0

Robert_Poland

Member
Licensed User
THX
for the assistance work
:)
... I did so that data from the activity of 1 is written to file
and in the activity of two check whether these data as if the button displays
:)
 
Upvote 0
Top