This is a CheckBox library that can be displayed together with text. So you can now add checkboxes and text them even faster.
If you want a standalone checkbox, then have a look at the AS_CheckBox library.
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
How the text should look like, you decide completely in the designer, under the "Label properties:
or in the code:
AS_CheckBoxAdvanced
Author: Alexander Stolte
Version: 1.00
If you want a standalone checkbox, then have a look at the AS_CheckBox library.
I spend a lot of time in creating views, like this and to create a high quality view cost a lot of time. If you want to support me and further views, then you can do it here by Paypal or with a coffee.
How the text should look like, you decide completely in the designer, under the "Label properties:
or in the code:
B4X:
AS_CheckboxAdvanced1.TextLabel.TextColor = xui.Color_Red
AS_CheckBoxAdvanced
Author: Alexander Stolte
Version: 1.00
- AS_CheckboxAdvanced
- Events:
- CheckedChange (Checked As Boolean)
- Fields:
- mBase As B4XView
- Tag As Object
- Functions:
- Base_Resize (Width As Double, Height As Double) As String
- Class_Globals As String
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
Base type must be Object - getCheckBoxWidthHeight As Float
Call Refresh if you change this value - getChecked As Boolean
- getDisabledBackgroundColor As Int
- getDisabledIconColor As Int
- getEnabled As Boolean
- getIconColor As Int
- getisEvent As Boolean
- getisFontAswesome As Boolean
- getisHaptic As Boolean
- getText As String
- getTextLabel As B4XView
- Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - Refresh As String
- setBorderCornerRadius (radius As Int) As String
- setBorderWidth (width As Int) As String
- setCheckBoxWidthHeight (WidthHeight As Float) As String
- setChecked (b_checked As Boolean) As String
- setCheckedAnimated (animated As Boolean) As String
- setCheckedBackgroundColor (crl As Int) As String
- setDisabledBackgroundColor (crl As Int) As String
- setDisabledIconColor (crl As Int) As String
- setEnabled (enable As Boolean) As String
- SetIcon (icon As String, isfontawesome As Boolean) As String
- setIconColor (Color As Int) As String
- setisEvent (Enabled As Boolean) As String
- setisFontAswesome (FontAwesome As Boolean) As String
- setisHaptic (Enabled As Boolean) As String
- setText (Text As String) As String
- Properties:
- BorderCornerRadius
- BorderWidth
- CheckBoxWidthHeight As Float
Call Refresh if you change this value - Checked As Boolean
- CheckedAnimated
- CheckedBackgroundColor
- DisabledBackgroundColor As Int
- DisabledIconColor As Int
- Enabled As Boolean
- IconColor As Int
- isEvent As Boolean
- isFontAswesome As Boolean
- isHaptic As Boolean
- Text As String
- TextLabel As B4XView [read only]
- Events:
- 1.00
- Release
- 1.01
- The checkbox is now also toggled when you click on the text
- 1.02
- Add Designer Property CheckBox2TextGap - Gap between checkbox and text
- Default: 10dip
- Add Designer Property CheckBox2TextGap - Gap between checkbox and text
- 1.03
- BugFixes and Improvements
Attachments
Last edited: