Android Question Add own view in [B4X] [XUI] AS Settings

wimpie3

Well-Known Member
Licensed User
Longtime User
Can something like this be done in AS Settings (I'm talking about the image)? Do I need to use AS_Settings1_CustomDrawProperty? I can't seem to find an example on how to do this. Nothing should happen when you click the image, it's just there for decorative reasons.

1736090684623.png
 

Alexander Stolte

Expert
Licensed User
Longtime User
Use the AddProperty_Custom property togehter with the CustomDrawCustomProperty event

Example:
B4X:
AS_Settings1.MainPage.AddProperty_Custom("","PremiumButton",90dip)
B4X:
Private Sub AS_Settings1_CustomDrawCustomProperty(CustomProperty As AS_Settings_CustomDrawCustomProperty)
    Select CustomProperty.Property.PropertyName
        Case "PremiumButton"
                CustomProperty.BackgroundPanel.LoadLayout("frm_SettingsProperty_PremiumButton")                   
    End Select
End Sub
 
Upvote 1

Alexander Stolte

Expert
Licensed User
Longtime User
 
Upvote 0
Top