This is a simple cross platform RadioButton.
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.
In B4I the animation is limited, because otherwise the circle would look too angular in the animation.
Animation = NONE (default)
ASCheckbox
Author: Alexander Stolte
Version: 1.04
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.
B4j: jXUI
B4a: XUi,XUI Views
B4i: iXUI,XUI Views
B4a: XUi,XUI Views
B4i: iXUI,XUI Views
Animation = NONE (default)
ASCheckbox
Author: Alexander Stolte
Version: 1.04
- ASRadioButton
- Events:
- CheckedChange (Checked As Boolean)
- Fields:
- g_Haptic As Boolean
- mBase As B4XView
- Tag As Object
- Functions:
- Class_Globals As String
- DesignerCreateView (Base As Object, Lbl As Label, Props As Map) As String
Base type must be Object - getBase As B4XView
- getChecked As Boolean
- getDisabledCheckedBackgroundColor As Int
- getDisabledUncheckedBackgroundColor As Int
- getEnabled As Boolean
- Initialize (Callback As Object, EventName As String) As String
- IsInitialized As Boolean
Tests whether the object has been initialized. - setBorderWidth (width As Int) As String
- setChecked (b_checked As Boolean) As String
- setCheckedBackgroundColor (crl As Int) As String
- setDisabledCheckedBackgroundColor (crl As Int) As String
- setDisabledUncheckedBackgroundColor (crl As Int) As String
- setEnabled (enable As Boolean) As String
- setUncheckedBackgroundColor (crl As Int) As String
- Properties:
- Base As B4XView [read only]
- BorderWidth
- Checked As Boolean
- CheckedBackgroundColor
- DisabledCheckedBackgroundColor As Int
- DisabledUncheckedBackgroundColor As Int
- Enabled As Boolean
- UncheckedBackgroundColor
- Events:
- 1.00
- Release
- 1.01
- B4I Better Animations thanks to @Semen Matusovskiy
- Add getBase
- 1.02
- Add DisabledCheckedBackgroundColor property and designer property
- Add DisabledUnCheckedBackgroundColor property and designer property
- Add Enable property - enable or disable the view
- BugFixes
- 1.03
- Add Designer Property Animation -Select-Animation NONE=without Slide=the normal animation
- Add Designer Property Animation -Select-Animation NONE=without Slide=the normal animation
- V1.04
- BugFix - Enabled = False, now the view is disabled, no touch gestures allowed
- V1.05
- Base_Resize is now public
Attachments
Last edited: