B4A Library [B4X] [XUI] AS Radio Button

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. :)
B4j: jXUI
B4a: XUi,XUI Views
B4i: iXUI,XUI Views
In B4I the animation is limited, because otherwise the circle would look too angular in the animation.
Screenshot_20200904-230850.jpg
ezgif.com-crop.gif
Screenshot_20201127-111648.jpg

Animation = NONE (default)
animation none.gif

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
Changelog
  • 1.00
    • Release
  • 1.01
  • 1.02
    • Add DisabledCheckedBackgroundColor property and designer property
    • Add DisabledUnCheckedBackgroundColor property and designer property
      • Screenshot_20201127-111648.jpg
    • Add Enable property - enable or disable the view
    • BugFixes
  • 1.03
    • Add Designer Property Animation -Select-Animation NONE=without Slide=the normal animation
      • animation none.gif
  • V1.04
    • BugFix - Enabled = False, now the view is disabled, no touch gestures allowed
Have Fun :)
 

Attachments

  • AS RadioButton Example.zip
    178.3 KB · Views: 189
  • ASRadioButton.b4xlib
    2.8 KB · Views: 66
Last edited:

angel_

Well-Known Member
Licensed User
It looks really cool, it would be nice to have the Enable property
 
Top