说明:放在.iyu的载入事件下,id需要对应好
例如如果把修改编辑框的代码弄到修改单选项上,会异常并失败
//Code By Scave
mian.iyu
//--按钮着色:
s id="需修改的控件id"
cls("android.view.View",view)
cls("android.graphics.PorterDuff$Mode",pdm)
cls("android.graphics.Color",gc)
cls("android.graphics.PorterDuffColorFilter",pdf)
cls("android.graphics.drawable.Drawable",dr)
cls("android.graphics.ColorFilter",cf)
gvs(id,ID)
javax(bk,ID,view,"getBackground")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,bk,dr,"setColorFilter",cf,pd)
//--编辑框着色:
s id="需修改的控件id"
cls("android.view.View",view)
cls("android.graphics.PorterDuff$Mode",pdm)
cls("android.graphics.Color",gc)
cls("android.graphics.PorterDuffColorFilter",pdf)
cls("android.graphics.drawable.Drawable",dr)
cls("android.graphics.ColorFilter",cf)
us(id,"textcursordrawable","#35f2b5")
gvs(id,ID)
javax(bk,ID,view,"getBackground")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,bk,dr,"setColorFilter",cf,pd)
//--长形进度条着色:
s id="需修改的控件id"
cls("android.widget.ProgressBar",pb)
cls("android.graphics.Color",gc)
cls("android.graphics.PorterDuffColorFilter",pdf)
cls("android.graphics.drawable.Drawable",dr)
cls("android.graphics.ColorFilter",cf)
cls("android.graphics.PorterDuff$Mode",pdm)
gvs(id,ID)
javax(pdd,ID,pb,"getProgressDrawable")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,pdd,dr,"setColorFilter",cf,pd)
//--圆形进度条着色:
s id="需修改的控件id"
cls("android.widget.ProgressBar",pb)
cls("android.graphics.Color",gc)
cls("android.graphics.PorterDuffColorFilter",pdf)
cls("android.graphics.drawable.Drawable",dr)
cls("android.graphics.ColorFilter",cf)
cls("android.graphics.PorterDuff$Mode",pdm)
gvs(id,ID)
javax(dic,ID,pb,"getIndeterminateDrawable")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,dic,dr,"setColorFilter",cf,pd)
//--拖动条着色:
s id="需修改的控件id"
cls("android.widget.ProgressBar",pb)
cls("android.graphics.Color",gc)
cls("android.graphics.PorterDuffColorFilter",pdf)
cls("android.graphics.drawable.Drawable",dr)
cls("android.graphics.ColorFilter",cf)
cls("android.graphics.PorterDuff$Mode",pdm)
gvs(id,ID)
//拖动进度条着色
javax(pdd,ID,pb,"getProgressDrawable")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,pdd,dr,"setColorFilter",cf,pd)
//滑块着色
javax(tm,ID,"android.widget.AbsSeekBar","getThumb")
javags(sa,null,pdm,"SRC_ATOP")
javax(cl,null,gc,"parseColor","String","#35f2b5")
javanew(pd,pdf,"int",cl,pdm,sa)
javax(null,tm,dr,"setColorFilter",cf,pd)