Giter VIP home page Giter VIP logo

Comments (6)

iceAnson avatar iceAnson commented on July 17, 2024

1、就是正常的打包命令,我本地环境是mac,path配置了gradle 4.1;所以可以在Android-Skin目录下直接执行gradle :demo:skinone:assembleDebug即可生成apk;或者进入skinone目录执行gradle clean assembleDebug

2、可以无缝支持自定义控件,只要在xml布局里写上color,drawable之类的资源即可,和普通的view使用一样

3、databinding由于在编译时生成了代码,这个我试试看能否支持一下

from android-skin.

junwen0814 avatar junwen0814 commented on July 17, 2024

第二个问题,不是系统的颜色属性哦,是类似于圆角头像的第三方控件,他自己定义的边框颜色这样的属性,这种可以支持xml换肤吗

from android-skin.

iceAnson avatar iceAnson commented on July 17, 2024

明白了,我之后加个拓展支持吧

from android-skin.

iceAnson avatar iceAnson commented on July 17, 2024

databinding 是调用了ViewDataBinding里的getColorFromResource来获取颜色的,然后在子类(ActivityDatabindingBinding extends ViewDataBinding)调用了setTextColor进行颜色设置的,无法进行换肤替换,除非采用插桩形式,目前暂不支持。

from android-skin.

junwen0814 avatar junwen0814 commented on July 17, 2024

好的,谢谢

from android-skin.

iceAnson avatar iceAnson commented on July 17, 2024

master代码自持自定义属性了

from android-skin.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.