B4A Library [B4X] [XUI] [B4XLib] SD TextView

Star-Dust

Expert
Licensed User
Longtime User
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
found & worked.
Some improvement please > in RTL mode, right padding is zero & 1st letter fused with right border! You should increase right padding.
It seemed only in B4A. Fixed with version 0.04
 

giannimaione

Well-Known Member
Licensed User
Longtime User
wish:
max length (numbers of characters) and type (alfa, number, decimal, max decimal, .....)
 

Star-Dust

Expert
Licensed User
Longtime User
wish:
max length (numbers of characters) and type (alfa, number, decimal, max decimal, .....)
Already this you can do as in native view:

MaxLength
B4X:
Private Sub SD_IconTextView1_TextChanged (OldText As String, Newtext As String)
    If Newtext.Length>MaxLength Then
        SD_IconTextView1.Text=OldText
    End If
End Sub

B4A InputType
B4X:
SD_IconTextView1.NativeObject.InputType=SD_IconTextView1.NativeObject.INPUT_TYPE_DECIMAL_NUMBERS

B4i InputType
B4X:
SD_IconTextView1.NativeObject.KeyboardType=SD_IconTextView1.NativeObject.TYPE_NUMBER_PAD
 

aletayyeb

Member
I want add with designer but have error :

an error occurred.
unknown view:_sd_Icontextview
 

Attachments

  • uknown.png
    81.1 KB · Views: 256

Star-Dust

Expert
Licensed User
Longtime User
I want add with designer but have error :

an error occurred.
unknown view:_sd_Icontextview
It's strange. Have you updated with the latest version?
You have to copy the xml file and the jar file to the libraries folder (or additional libraries)
 
Last edited:

aletayyeb

Member
Thank's for reply
I have lastest version(0.05)
but that's B4Xlib Type and I put on the additional library and cant find jar and xml files
and my b4a version is 10
 

Attachments

  • sd.png
    68.7 KB · Views: 231
  • sd_b4xlib.png
    55 KB · Views: 242

Star-Dust

Expert
Licensed User
Longtime User
Thank's for reply
I have lastest version(0.05)
but that's B4Xlib Type and I put on the additional library and cant find jar and xml files
and my b4a version is 10
you're right, my mistake, just the b4xlib file in the library folder is enough.

Make sure you don't have an older version in the Additional Libraries folder

I recommend that you delete the b4xlib file and download it again.
 

aletayyeb

Member
I do that...but having error yet...
some library show this error but I don't know what I do that
What I should do?
 

Star-Dust

Expert
Licensed User
Longtime User
If you experience this problem on other libraries, check if one library is conflicting with the others.

But a good thing is to get technical support.
 

Star-Dust

Expert
Licensed User
Longtime User
Update 0.06
Fix bug
 

Star-Dust

Expert
Licensed User
Longtime User
you can set other filters using the NativeObject property and assigning it to EditText (For Android) or TextField (B4i or B4j)

B4A sample
B4X:
Dim EditText1 As EditText = TextView.NativeObject
EditText1.InputType = EditText1.INPUT_TYPE_PHONE
 

Star-Dust

Expert
Licensed User
Longtime User
Update 0.07
Fix bug​
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…