Hello. I am trying to add a functionality to my app that allows the user to select his/her preferred background color scheme. This same color scheme would have to be applied to all of the activities in the app.
I started to create a code module with the following code:
But I just can't seem to figure out how to apply gd1 to all other activity backgrounds. Any help?
:sign0104:
I started to create a code module with the following code:
B4X:
Sub DarkBlue
Dim gd1 As GradientDrawable
Dim cols1(2) As Int
cols1(0) = Colors.ARGB(255,0,0,139)
cols1(1) = Colors.Black
gd1.Initialize("TOP_BOTTOM",cols1)
gd1.CornerRadius=0
End Sub
But I just can't seem to figure out how to apply gd1 to all other activity backgrounds. Any help?
:sign0104: