B4J Question [ABMaterial] Imageslider font color

ToolboxZX

Member
Licensed User
Longtime User
Is there a method available to change the font color displayed for one or both of the text items that appear with the slide images? If so, what is the proper syntax to do it. Thank you.
 

alwaysbusy

Expert
Licensed User
Longtime User
You can change the color using an ImageSlidertheme (it is a global property, so the same colors are used for every slide in your image slider).

Creating the theme:
B4X:
theme.AddImageSliderTheme("myslider")
theme.ImageSlider("myslider").TitleForeColor = ABM.COLOR_LIME
theme.ImageSlider("myslider").TitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2
theme.ImageSlider("myslider").SubTitleForeColor = ABM.COLOR_GREEN
theme.ImageSlider("myslider").SubTitleForeColorIntensity = ABM.INTENSITY_LIGHTEN2
...

Using the theme:
B4X:
Dim slider As ABMImageSlider
slider.Initialize(page, "slider", "myslider")
...
 
Upvote 0

ToolboxZX

Member
Licensed User
Longtime User
Thank you that is exactly what I was looking for and works great! :)

I assume since I do not see an attribute for it, that there is no way to change the size of the text, correct?
 
Upvote 0
Top