Android Question Change Action button text color in DSSnackBar

asales

Expert
Licensed User
Longtime User
In this post:
https://www.b4x.com/android/forum/t...al-design-components.58893/page-3#post-379813

@corwin42 says:
If you change the color of the second "Label" in the above (below) code you will change the Action Button text color.
B4X:
Dim p AsPanel
p = snack.ViewForEach v AsViewIn p.GetAllViewsRecursiveIf v IsLabelThenDim textv AsLabel
textv = v
textv.TextColor = Colors.Red
Exit
EndIf
Next

I'm just remove the "Exit" from the code above to change the Action button text color and works.

This is the correct way?
 
Top