2014年9月3日

Android中使用canvas定制控件(控件周围阴影)

摘要: 首先上一张效果图:基本的思路是:1.绘制圆角矩形。2.四周添加阴影。开始绘制在onDraw中,首先初始化画笔:1 Paint paint = new Paint();2 paint.setColor(Color.WHITE);3 paint.setShadowLayer(10f, 0, 0, IFU... 阅读全文

posted @ 2014-09-03 11:58 irrienberith 阅读(7318) 评论(0) 推荐(0)

导航