Aug 13, 2020 Replies: 109 I needed to develop a modern editText (or TextField), but different from the B4XFloatTextField, different in terms of graphics and style. So I created the SD_TextView (see also xComboBox) NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author SD_TextView Author: Star-Dust Version: 0.25 SD_IconTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) SetHintColor (HintTextColor As Int, HintBackGroundColor As Int) SetTextViewColor (TextColor As Int, BackGroundColor As Int, Corner_Color As Int) Properties: AnimateHint As Boolean Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TwoIconTextView Events: Click EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Unfocus Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextConfirmButton As String Char fontAwesone TextFont As B4XFont SD_UnderLineTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: ExpansionTime As Int mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) UnderLine (Show As Boolean) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont Attachments Sample B4i.zip Sample B4i.zip 110.6 KB · Views: 1,446 1597673547592.png 20.7 KB · Views: 2,329 Sample B4J.zip Sample B4J.zip 2.5 KB · Views: 1,362 Sample B4A.zip Sample B4A.zip 8.3 KB · Views: 1,955 SD_TextView.B4xLib SD_TextView.B4xLib 9.4 KB · Views: 368 Last edited: Jan 30, 2026 Click to expand...
I needed to develop a modern editText (or TextField), but different from the B4XFloatTextField, different in terms of graphics and style. So I created the SD_TextView (see also xComboBox) NOTE: You can use this library for personal and commercial use. Include it in your projects.. Attention, even if it is a B4XLib library, it is not allowed to decompress it, modify it, change its name or redistribute it without the permission of the author SD_TextView Author: Star-Dust Version: 0.25 SD_IconTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) SetHintColor (HintTextColor As Int, HintBackGroundColor As Int) SetTextViewColor (TextColor As Int, BackGroundColor As Int, Corner_Color As Int) Properties: AnimateHint As Boolean Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont SD_TwoIconTextView Events: Click EnterPressed FocusChanged (HasFocus As Boolean) HintClick TextChanged (OldText As String, Newtext As String) Unfocus Fields: mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextConfirmButton As String Char fontAwesone TextFont As B4XFont SD_UnderLineTextView Events: EnterPressed FocusChanged (HasFocus As Boolean) TextChanged (OldText As String, Newtext As String) Fields: ExpansionTime As Int mBase As B4XView Tag As Object Functions: DesignerCreateView (Base As Object, Lbl As Label, Props As Map) Base type must be Object GetBase As B4XView Initialize (Callback As Object, EventName As String) UnderLine (Show As Boolean) Properties: Hint As String HintFont As B4XFont NativeObject As TextField [read only] Text As String TextFont As B4XFont
Star-Dust Expert Licensed User Longtime User Aug 15, 2020 #21 HAH said: tested, no RTL found! How can I set? Click to expand... In the Design you find the RTL property Last edited: Aug 15, 2020
HAH said: tested, no RTL found! How can I set? Click to expand... In the Design you find the RTL property
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Aug 15, 2020 #22 Star-Dust said: In the Design you find the RTL property Click to expand... found & worked. Some improvement please > in RTL mode, right padding is zero & 1st letter fused with right border! You should increase right padding.
Star-Dust said: In the Design you find the RTL property Click to expand... found & worked. Some improvement please > in RTL mode, right padding is zero & 1st letter fused with right border! You should increase right padding.
Xfood Expert Licensed User Longtime User Aug 15, 2020 #23 Star-Dust said: In the Design you find the RTL property Click to expand... congratulations, it's beautiful, thank you
Star-Dust said: In the Design you find the RTL property Click to expand... congratulations, it's beautiful, thank you
Star-Dust Expert Licensed User Longtime User Aug 15, 2020 #24 HAH said: found & worked. Some improvement please > in RTL mode, right padding is zero & 1st letter fused with right border! You should increase right padding. Click to expand... It seemed only in B4A. Fixed with version 0.04
HAH said: found & worked. Some improvement please > in RTL mode, right padding is zero & 1st letter fused with right border! You should increase right padding. Click to expand... It seemed only in B4A. Fixed with version 0.04
H Hamied Abou Hulaikah Well-Known Member Licensed User Longtime User Aug 15, 2020 #25 Star-Dust said: Fixed Click to expand... tested , it is ok now
Star-Dust Expert Licensed User Longtime User Aug 16, 2020 #26 Update 0.05 Added another style to IconTextView. selectable only from Design Select Bead for new style
Update 0.05 Added another style to IconTextView. selectable only from Design Select Bead for new style
Gianni M Well-Known Member Licensed User Longtime User Aug 17, 2020 #27 Star-Dust said: I was born the need to create Click to expand... ?
Star-Dust Expert Licensed User Longtime User Aug 17, 2020 #28 giannimaione said: ? Click to expand... Google Translate...... Fix it Last edited: Aug 17, 2020
Gianni M Well-Known Member Licensed User Longtime User Aug 17, 2020 #29 wish: max length (numbers of characters) and type (alfa, number, decimal, max decimal, .....)
Star-Dust Expert Licensed User Longtime User Aug 18, 2020 #30 giannimaione said: wish: max length (numbers of characters) and type (alfa, number, decimal, max decimal, .....) Click to expand... 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
giannimaione said: wish: max length (numbers of characters) and type (alfa, number, decimal, max decimal, .....) Click to expand... 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
A aletayyeb Member Aug 30, 2020 #31 I want add with designer but have error : an error occurred. unknown view:_sd_Icontextview Attachments uknown.png 81.1 KB · Views: 686
Star-Dust Expert Licensed User Longtime User Aug 30, 2020 #32 aletayyeb said: I want add with designer but have error : an error occurred. unknown view:_sd_Icontextview Click to expand... 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: Aug 30, 2020
aletayyeb said: I want add with designer but have error : an error occurred. unknown view:_sd_Icontextview Click to expand... 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)
A aletayyeb Member Aug 30, 2020 #33 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: 674 sd_b4xlib.png 55 KB · Views: 705
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
Star-Dust Expert Licensed User Longtime User Aug 30, 2020 #34 aletayyeb said: 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 Click to expand... 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 said: 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 Click to expand... 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.
A aletayyeb Member Aug 30, 2020 #35 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?
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 Aug 30, 2020 #36 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.
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.
behnam_tr Active Member Licensed User Longtime User Oct 12, 2020 #38 thanks Star-Dust can you add input type like numbers,string,..... and formatted text like date,currency,......
thanks Star-Dust can you add input type like numbers,string,..... and formatted text like date,currency,......
Star-Dust Expert Licensed User Longtime User Oct 12, 2020 #39 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
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