I created a new custom view where the user continues to run the application based on the information displayed in the tiles. There are three types of information that can be displayed:
Tiles_JE
Author: Jerryk
Version: 1.6
Important! it is necessary to declare and initialize a DDD variable in B4XMainPage!
Methods:
Events:
Properties:
FixedWidth -Tiles per row is ignored, actual width is used
"tile" - if the tile is selected, background is drawn in color SelectedColor
"off" - the tile is not redrawn
Functions:
- label
- image
- layout
Tiles_JE
Author: Jerryk
Version: 1.6
Important! it is necessary to declare and initialize a DDD variable in B4XMainPage!
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Public dd As DDD
End sub
Private Sub B4XPage_Created (Root1 As B4XView)
dd.Initialize
xui.RegisterDesignerClass(dd)
...
Methods:
- SelectedItem As String
Events:
- Click (pId As String, pTag As Object)
Properties:
- TilesType As String
FixedWidth -Tiles per row is ignored, actual width is used
- TileHeight As Int
- TileWidth As Int
- CornerRadius As Int
- Gap Between Tiles As Int
- TilesPerRow As Int
- BackgroundColor As Int
- ShowSelected As String
"tile" - if the tile is selected, background is drawn in color SelectedColor
"off" - the tile is not redrawn
- SelectedColor As Int
- SelectedBorderWidth As Int
- ShowDefaultBorder As Boolean
- BorderColor As Int
- BorderWidth As Int
Functions:
- AddLabel (pId As String, pText As String, pSize As Int, pBackgroundColor As Int, pTag As Object) As Label
- AddImage (pId As String, pBitmap As String, pBackgroundColor As Int, pTag As Object) As ImageView
- AddImageResize (pId As String, pBitmap As String, pBackgroundColor As Int, pWidth As Int, pHeight As Int, pTag As Object) As ImageView
- AddLayout (pId As String, pLayout As String, pBackgroundColor As Int, pTag As Object) As Panel
- FindTile (search As String) As Panel
- DefaultColor (pTag As String, pCol As Int)
- AddToParent (Parent As B4XView, Left As Int, Top As Int, Width As Int, Height As Int)
- GetBase
- RedrawTiles
- DeleteTile (pTag As String)
- SetMaxHeight
- CenterHorizontally
Attachments
Last edited: