摘要: 当按钮使用shape.xml文件设置了圆角之后,如果直接在代码中使用setBackgroundColor(color),则会失去圆角效果这种情况怎么解决呢比如设置登录时的按钮:1 GradientDrawable myGrad = (GradientDrawable) login.getBackgr... 阅读全文
posted @ 2015-07-09 19:48 包子糖Sakura 阅读(197) 评论(0) 推荐(0)
摘要: Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe... 阅读全文
posted @ 2015-07-09 17:34 包子糖Sakura 阅读(138) 评论(0) 推荐(0)