edittext

  1. R

    Android Question How to determine if cursor is at end of text in an edittext?

    One would think that this is easy but I haven't worked it out yet, for example: Sub CursorAtEndOfText(vEDT As EditText) As Boolean Dim iSelStart As Int = vEDT.SelectionStart Dim bCursorAtEnd As Boolean Log("CursorAtEndOfText, iSelStart: " & iSelStart)...
  2. M

    Android Question [XUI Views] user_interaction Java event not firing while using B4XInputTemplate

    Hi everyone, my app has a timeout timer that is resetted every time that the user interacts with the application interface. Thanks to this method However I just implemented a B4XDialog with B4XInputTemplate and I noticed that when the keyboard is used in Text Mode the "user_interaction" event...
  3. mohsen programmer

    Android Question Sender does not work

    Hello I have defined several panels in the designer and have put edit text inside some of them. Since the number of editing texts is very large, adding a large number of Sub, changing the focus and changing the text seems non-standard. So, I plan to set the EventName of all of them the same and...
  4. mohsen programmer

    Android Question Adjust the size of the EditText text

    Hello, What is the standard way to make the size of the text inside the edit text match the height of the edit text so that it doesn't stick out? EditText1.TextSize=40 Now, in tablets, the text inside the edit text may be fit, but in the phones, it pops out from the top and bottom! Thank you for...
  5. Alexander Stolte

    Android Example [B4X] AS TextFieldAdvanced - ComboBox

    https://www.b4x.com/android/forum/threads/b4x-xui-as-textfieldadvanced-title-information-counter-password-button-prefix-suffix-icons-multiline.141337/#content In this example I will show you how to quickly and easily turn the TextField into a ComboBox. 1. Set the Mode to "ComboBox" in...
  6. A

    Android Question HandleAction for B4XFloatTextField

    Does the HandleAction event for the keyboard IME work in case we have a B4XFloatTextField instead of an EditText?
  7. K

    Android Question B4XInputTemplate text cant be changed by user when called in sub

    Hello everyone! I use B4X and call this sub (located in B4XMainPage) from various modules: Public Sub DBRF(ScanHere As B4XView, CallRoot As B4XView) Public ThirdDialog As B4XDialog ThirdDialog.Initialize(CallRoot) ThirdDialog.BorderCornersRadius = 44 ThirdDialog.Title = "Debug...
  8. K

    Android Question Regional Settings For Number Format

    Hello everyone! I have an EditText field with the keyboard set to DECIMAL_NUMBERS. I want to take the input as float and place it in a JSON. I need the decimal point to be a "," (European style) instead of "." (USA style). The "," cannot be pressed now at all. I ve seed this solution, but it...
  9. R

    Android Question EditText_FocusChanged Never Fires - Solved

    I am recompiling a single Activity, single screen calculator I wrote a few years ago following some minor modifications. The platform is a Samsung S21 Ultra running Android 13. TargetSdkVersion="31". The FocusChanged event for the edit text never fires.... not in Debug nor Release modes ...
  10. M

    Android Question EditText disable "Next" button in keyboard

    Hi everyone, I've an UI setup that can cause problem if an user tap on the "Next" button on the keyboard when writing in an EditText. I wish to know if its possibile to disable it, or intercept its press and cancel the standard behavior (like _KeyPress). At the moment I worked around the...
  11. Y

    Android Question Edittext does not shift when the virtual keyboard is displayed in B4XPages with immersive screensplash

    Hi, I made the following observation, after having integrated an immersive splashscreen in a B4X application (i.e.: in the Main): once displayed, the virtual keyboard does not allow the edittext to automatically shift upwards, despite the fact that I I also used "IME" in the relevant pages of...
  12. Guenter Becker

    B4A Library extended editText view

    Notice! This is obsolete it will no longer developed. There is a better substitute. Look in the Forum at: TDSLinput (masked extended EditText) Name: TDeditTextExt Type: B4Xlib Code: B4A Version: Beta2 -early access- Lib Name: TDeditTextExt.b4xlib (C): TechDoc G.Becker, free to use only for...
  13. T201016

    Share My Creation [B4X] TextEditor - Save and load external files.

    Welcome to the Forum! I would like to share my modest contribution today in the Android Text Editor (based on Erel's sources available). TextEditor ver. RS0.1 (see: download dropbox) Since I noticed the interest in the forum, the matter of counting lines of text in objects of type (EditText or...
  14. Lucas Eduardo

    iOS Question Expand the Eddittext row for row like WhatsApp

    I'm using B4XPages, i found this thread https://www.b4x.com/android/forum/threads/expand-the-eddittext-row-for-row-like-whatsapp.83854/ that resolve my problem in Android, but in iOS i did not find a way. Wich is the best way to do this? Thanks
  15. M

    Android Question Change EditText Cursor Color

    Hi everyone, i already looked for something in the forum but i did not find nothing working. Someone of you knows how can i change the cursor color of an edittext? more precisely, i want to make it invisible. (note: i use appcompat, i don't know if this information can be useful) Thanks in...
  16. magicmars

    Android Question Event "onSelectionChanged" when cursor change in editext

    Hi, I need to do something when the user change the cursor position in an editText. There is natively no event to handle the cursor changing position in an Edit text (it just handle the text and focus changing). As i can see , it's possible to create such a listener in java with class override...
  17. B

    Android Question Add line number on Edittext

    Hello, I want to make a notebook that is something like an editor. You must have seen in Android Studio or B4A itself that when we write our code and press Enter, a new line is added and the line number is displayed next to it, and if we delete a line in the middle, a number will be subtracted...
  18. M

    Android Question Apply shadow to a view (edittext)

    Hi everyone, i was wondering if there is a way to apply a shadow (like elevation) to a view. At the moment i need to apply it on a edittext, is it possible? Thanks in advance
  19. M

    iOS Code Snippet Input Dialog (modal) - slightly modified from the Erel one

    The original code: https://www.b4x.com/android/forum/threads/inputdialog-function.52811/post-331242 I modified the code to be able to add two buttons, and receive the "Success" parameter to distinguish when the user tap on the positive button or cancel button. Sub Button1_Click Dim no As...
  20. M

    Android Question Native Input Dialogs Android (No B4XDialogs)

    Hi everyone, how can implement the native input dialogs of Android in my app? i found this code here, but i don't know how to convert it: private void showForgotDialog(Context c) { final EditText taskEditText = new EditText(c); AlertDialog dialog = new AlertDialog.Builder(c)...
Top