I tried to transform a code that uses the JavaObject Library into Reflector. So do not use too many Libraries in my code .. but without result ...
B4X:
Dim jo As JavaObject = SearchButton.Background
jo.RunMethod("setColorFilter", Array As Object(ColorSearchButton, "SRC_OUT"))
This don't work
B4X:
Dim Re As Reflector
Re.Target=SearchButton.Background
Re.RunPublicmethod("setColorFilter",Array As Object(ColorSearchButton, "SRC_OUT"),Array As String("java.lang.int", "java.lang.String"))
JavaObject is preferred over Reflection. There are cases where you must use Reflection. In that cases you should use both libraries. JavaObject will add about 2kb to your app. You will never notice it.