kaka252 / flexboxutils Goto Github PK
View Code? Open in Web Editor NEW关于Flexbox的封装类,用于展示标签和操作标签
关于Flexbox的封装类,用于展示标签和操作标签
回调中selectedItem里的数据和选择时选择数据的顺序不一样,比如我是按顺序选择的(a、b、c)但是结果返回的可能会是(a、c、b)
我重写,发现背景换了,但是颜色没换。。。
TextView textView = tagView.getTextView();
textView.setTextSize(TypedValue.COMPLEX_UNIT_DIP, 13);
textView.setGravity(Gravity.CENTER);
textView.setTextColor(item.textColor);
textView.setBackgroundResource(item.textBg);
//itemDefaultDrawable = item.textBg; //动态更换颜色
//tagView.setItemDefaultDrawable(itemDefaultDrawable);
tagView.setItemDefaultDrawable(item.textBg);
tagView.setItemSelectDrawable(itemSelectDrawable);
//itemDefaultTextColor = item.textColor;//动态更换颜色
//tagView.setItemDefaultTextColor(itemDefaultTextColor);
tagView.setItemDefaultTextColor(item.textColor);
tagView.setItemSelectTextColor(itemSelectTextColor);
tagView.setItem(item);
你好,可以在onSubscribe回调中添加一个position行吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.