Android Question custom resources, howto?

Discussion in 'Android Questions' started by Cableguy, May 1, 2015.

  1. Cableguy

    Cableguy Expert Licensed 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?
     
  2. DonManfred

    DonManfred Expert Licensed User

    Cableguy and Peter Simpson like this.
  3. Cableguy

    Cableguy Expert Licensed User

    Thanks Don....

    I did find a small sub in another thread that works... basically the same...
    Code:
    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
     
    Peter Simpson and DonManfred like this.
Loading...
  1. 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.
    Dismiss Notice