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
  • V1.05
    • Base_Resize is now public
Have Fun :)
 

Attachments

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

wimpie3

Well-Known Member
Licensed User
Longtime User
Test with this code (empty B4APages project + the code from above). You'll see a cyan rectangle and you have to click on it in order for the radio button to appear.
 

Attachments

  • Project.zip
    14.2 KB · Views: 128

wimpie3

Well-Known Member
Licensed User
Longtime User
Did a reset of my mobile phone and everything is working now as it should. Weird. Thanks anyway 👍 Wonderful to see how quickly you react on questions!
 
Top