Coder Social home page Coder Social logo

Comments (7)

JavaNoober avatar JavaNoober commented on July 21, 2024

你是说边框颜色吗,如果是边框颜色可以考虑一下bl_focused_stroke_color,bl_unFocused_stroke_color

from backgroundlibrary.

litaoyuan avatar litaoyuan commented on July 21, 2024

就是通过java实现,不是在xml里面配置

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

所有的属性都提供了set方法去通过代码设置,具体见DrawableCreator.Build类,使用方法在 readme.md里有,你可以试一下bl_focused_textColor,bl_selected_textColor这些

from backgroundlibrary.

litaoyuan avatar litaoyuan commented on July 21, 2024

比如我要在imgview写了一个圆形半径,但是用glide加载图片出来不是圆形,设置圆角也不行

from backgroundlibrary.

litaoyuan avatar litaoyuan commented on July 21, 2024

DrawableCreator 你这个类,好像没有使用说明呢

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

如果你想写圆角应该直接调用gilde的方法去设置。
DrawableCreator的使用类似于下面这个:
tvTest1.setClickable(true);//由于Android源码的原因,必须调用,否则不生效
ColorStateList colors = new DrawableCreator.Builder().setPressedTextColor(Color.RED).setUnPressedTextColor(Color.BLUE).buildTextColor();
tvTest1.setTextColor(colors);

from backgroundlibrary.

JavaNoober avatar JavaNoober commented on July 21, 2024

可以加我qq,详细说明一下

from backgroundlibrary.

Related Issues (20)

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.