lua改变图片颜色
2023-01-24 09:16:15 最后更新
mian.iyu
s id="2"
//图标id
s color="#009688"
//颜色
call(null, "mlua", "c.main", id, color)

lua.mlua
function main(id, color)
--图标着色 
if type(id)=="number" then
id=i:gvs(id)
end
import "android.graphics.Color"
local color = Color:parseColor(tos(color))
id:setColorFilter(color)
end