Douglas Farias Expert Licensed User Longtime User Jan 30, 2014 #1 hi my question i think is simple i this is my app. my question is: how to make the edittext is big when you click ? for exemple i click in my edittext to put my text and it come to to full screnn when i click at back key it back to normal ??
hi my question i think is simple i this is my app. my question is: how to make the edittext is big when you click ? for exemple i click in my edittext to put my text and it come to to full screnn when i click at back key it back to normal ??
Erel B4X founder Staff member Licensed User Longtime User Jan 30, 2014 #2 The image is broken. Upvote 0
LucaMs Expert Licensed User Longtime User Jan 30, 2014 #3 You could enlarge the EditText in the FocusChanged event: B4X: Sub EditText1_FocusChanged (HasFocus As Boolean) If HasFocus Then Dim et As EditText = Sender et.SetLayout(0, 0, 100%x, 100%y) End If End Sub and reset its size in Activity_KeyPress, checking for KeyCode = KeyCodes.KEYCODE_BACK (but this last thing would be well controlled) Upvote 0
You could enlarge the EditText in the FocusChanged event: B4X: Sub EditText1_FocusChanged (HasFocus As Boolean) If HasFocus Then Dim et As EditText = Sender et.SetLayout(0, 0, 100%x, 100%y) End If End Sub and reset its size in Activity_KeyPress, checking for KeyCode = KeyCodes.KEYCODE_BACK (but this last thing would be well controlled)