Android Question custom resources, howto?

Cableguy

Expert
Licensed User
Longtime User
Hi guys

I need to set a custom drawable and then retrieve it from the res folder...
Can anyone point me an example without using other than core or reflection libs?
 

Cableguy

Expert
Licensed User
Longtime User
Thanks Don....

I did find a small sub in another thread that works... basically the same...
B4X:
Private Sub LoadResourceDrawable(id As Int) As Object
   Dim r As Reflector
    r.Target = r.GetContext
    r.Target = r.RunMethod("getResources")
   Return r.RunMethod2("getDrawable", id, "java.lang.int")
End Sub
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…