This is a wrapper for this github project.
I´m posting here the Lib, an example and the java-source
The Lib is using the new Custom Properties which can be used in designer in V5.8
So you need B4A 5.8+ to use this library
IconicFontEngine
Author: DonManfred (wrapper)
Version: 2
If you want to donate for my work building the wrapper you can do it here:
Please note the additional folder "fonts" inside the Files folder of the Example-project! The fonts used are inside this folder.
New in V2.0
- Added the MaterialIconsFont to the set.
I´m posting here the Lib, an example and the java-source
The Lib is using the new Custom Properties which can be used in designer in V5.8
So you need B4A 5.8+ to use this library
IconicFontEngine
Author: DonManfred (wrapper)
Version: 2
- IconicFontButton
Fields:- ba As BA
- AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
- BringToFront
- DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
- Initialize (EventName As String)
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
- SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- FontAwesomeList As IterableList [read only]
- Height As Int
- Left As Int
- MaterialIconsList As IterableList [read only]
- Tag As Object
- Text As CharSequence [write only]
- Top As Int
- TypeIconList As IterableList [read only]
- Visible As Boolean
- Width As Int
- IconicFontEditText
Fields:- ba As BA
- AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
- BringToFront
- DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
- Initialize (EventName As String)
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
- SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- FontAwesomeList As IterableList [read only]
- Height As Int
- Hint As CharSequence [write only]
- Left As Int
- MaterialIconsList As IterableList [read only]
- Tag As Object
- Text As CharSequence [write only]
- Top As Int
- TypeIconList As IterableList [read only]
- Visible As Boolean
- Width As Int
- IconicFontTextView
Fields:- ba As BA
- AddToParent (Parent As ViewGroup, left As Int, top As Int, width As Int, height As Int)
- BringToFront
- DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map)
- Initialize (EventName As String)
- Invalidate
- Invalidate2 (arg0 As Rect)
- Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- IsInitialized As Boolean
- RemoveView
- RequestFocus As Boolean
- SendToBack
- SetBackgroundImage (arg0 As Bitmap)
- SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int)
- SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int)
- SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int)
- SetVisibleAnimated (arg0 As Int, arg1 As Boolean)
- Background As Drawable
- Color As Int [write only]
- Enabled As Boolean
- FontAwesomeList As IterableList [read only]
- Height As Int
- Left As Int
- MaterialIconsList As IterableList [read only]
- Tag As Object
- Text As CharSequence [write only]
- Top As Int
- TypeIconList As IterableList [read only]
- Visible As Boolean
- Width As Int
If you want to donate for my work building the wrapper you can do it here:
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private iconicBtn As IconicFontButton
Private iconicEdit As IconicFontEditText
Private IconicLabel As IconicFontTextView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("Layout1")
Log(iconicBtn.FontAwesomeList)
Log(iconicBtn.TypeIconList)
'
' These two methods (FontAwesomeList and TypeIconList) are available in either
' IconicFontButton, IconicFontEditText and IconicFontTextView
'
iconicBtn.Text = "Test-Github {fa-github}"
iconicEdit.Text = "{typcn-anchor}{typcn-social-github-circular}"
iconicEdit.Hint = "{typcn-anchor}"
IconicLabel.Text = "{fa-github}{typcn-social-github-circular}"
End Sub
Please note the additional folder "fonts" inside the Files folder of the Example-project! The fonts used are inside this folder.
New in V2.0
- Added the MaterialIconsFont to the set.
Attachments
Last edited: