Android Question how to use 9patch png for listview?

Discussion in 'Android Questions' started by hzytsoft, Jul 18, 2015.

  1. hzytsoft

    hzytsoft Member Licensed User

    like input i can use follow code
    mybj(some, "input")
    some can use button, panel ,edittext .........
    but when i used mybj(listview,"input")
    is not work

    Sub mybj(Control As View, ImageName As String)
    Dim r As Reflector
    Dim package As String
    Dim id11 As Int
    package = r.GetStaticField("anywheresoftware.b4a.BA", "packageName")
    id11 = r.GetStaticField(package & ".R$drawable", ImageName)
    r.Target = r.GetContext
    r.Target = r.RunMethod("getResources")
    Control.Background = r.RunMethod2("getDrawable", id11, "java.lang.int")
    End Sub

    but when i used mybj(listview,"input")
    is not work

    can anybody know?
    tks all
     
  2. little3399

    little3399 Active Member Licensed User

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