B4A Library [B4X] [XUI] [B4XLib] SD_TextView

Star-Dust

Expert
Licensed User
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

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


1605734432742.png


1605734557938.png


Video.gif



SD_TextView

Author:
Version:
0.09
  • SD_IconTextView
    • 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)
    • 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)
    • 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)
      • 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
      • TextFont As B4XFont
 

Attachments

Last edited:

Star-Dust

Expert
Licensed User
Update 0.2

Added IconTextField. A new view allows you to insert an icon (FontAversone or Material) before the editable text

1597416460639.png
 

omo

Active Member
Licensed User
Fontawesome icon is not responding to click event and does multiple icons on a single IconTextField allowed with '&' - concatenation sign?
 

Star-Dust

Expert
Licensed User
Fontawesome icon is not responding to click event
There is no event connected to the icon, because it is not a button. It is an icon / label that describes the type of information to be edited.

In the example we indicate username and in the following view the password
1597427379712.png


does multiple icons on a single IconTextField allowed with '&' - concatenation sign?
Yes, it is possible to do it. But keep in mind that the space is only 40dip. Therefore it is not possible to insert more than 2 characters if the font size is not reduced
 

Xfood

Active Member
Licensed User
Ritengo che sia ottima, e molto bella questa lib, ma non capisco la differenza con quella di erel...
SD_TextView vs B4XFloatTextField
 

Star-Dust

Expert
Licensed User
Ritengo che sia ottima, e molto bella questa lib, ma non capisco la differenza con quella di erel...
SD_TextView vs B4XFloatTextField
Please write in English in the intentional forum

Only the graphics.The editable view is surrounded by a rounded border line. The label is placed on the top line. Also can the view can be colored like the frame so as to create a particular effect.
Additionally, the label animation is optional.

Otherwise all editable views are the same
 

HAH

Well-Known Member
Licensed User
Is right to left RTL direction supported?
 

Star-Dust

Expert
Licensed User

Star-Dust

Expert
Licensed User

HAH

Well-Known Member
Licensed User
Maybe, but what could it do?
It is important for Arabic/Hebrow/Persian Languages because they are Right To Left (RTL) languages, their sentences written from right to left (english opposite)
 

Star-Dust

Expert
Licensed User
It is important for Arabic/Hebrow/Persian Languages because they are Right To Left (RTL) languages, their sentences written from right to left (english opposite)
Ok. When I can, I will try to implement it
 
  • Like
Reactions: HAH

HAH

Well-Known Member
Licensed User
tested, no RTL found! How can I set?
 
Top