54

无需自定义View,彻底解放shape,selector吧

 5 years ago
source link: https://juejin.im/post/5b9682ebe51d450e543e3495
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 作为一个android程序员,对于shape、selector这两个标签一定不陌生。每当UI设计师给我们设计出一个个button背景的时候,我们就需要去drawable文件夹下去新建一个bg_xxx.xml,然后很多时候区别仅仅是一个边框的颜色或者填充的

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK