iOS Question Label Text Shadow

jazzzzzzz

Active Member
Licensed User
Longtime User
How can I add text shadow in label in b4i ?

Code:
Sub SetTextShadow(pView As View, pRadius As Float, pDx As Float, pDy As Float, pColor As Int)
   Dim ref As Reflector
  
   ref.Target = pView
   ref.RunMethod4("setShadowLayer", Array As Object(pRadius, pDx, pDy, pColor), Array As String("java.lang.float", "java.lang.float", "java.lang.float", "java.lang.int"))
End Sub

This is the sub am using for b4a
 
I think that adds shadow to the view and that's not working as expected..What I need is text shadow ..In the image attached there is a number inside dog picture..

In android with the given method it gives a black border with shadow effect there
 

Attachments

  • image.jpeg
    image.jpeg
    138.9 KB · Views: 564
Upvote 0
Back
Top