Using the code in this thread:
https://www.b4x.com/android/forum/threads/achieving-a-contrast-between-label-color-and-label-textcolor.120593/post-753992
Trying to get the contrasting text colour for a (partially) transparent label where the parent is a non-transparent panel.
In the great...
Using .png images for ACToolbar icons. Produce the bitmapdrawables with this code:
Sub BitmapDrawableFromFile(strFolder As String, strFile As String) As BitmapDrawable
Dim bmp As Bitmap
Dim bmpd As BitmapDrawable
bmp = LoadBitmap(strFolder, strFile)
bmpd.Initialize(bmp)
Return bmpd
End...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.