![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
【Android】
tommaomao233
Whatever worth doing is worth doing well
展开
-
启动动画——不是使人记住你,而是让人厌烦你
毕业后做安卓开发一年了。作为一名在Freelance 的兼职Android开发工程师,我有的时候会遇到一些有争议的情况。我的客户在阐述他们的需求时,都会以这样一个要求开始。——可以在应用打开时用个5秒来展示我们的商标吗?——哦,启动动画。但是,为什么呢?——那样我们的app看起来更专业。我不知道他们所谓的“专业”是什么意思。但一切还没有结束。我竭尽全力想劝说他们,启翻译 2014-12-07 11:17:08 · 930 阅读 · 1 评论 -
在GRIDVIEW中使用CONTEXTUAL ACTIONBAR批量操作数据
一.效果 二.实现通过长按GridView中的item,触发Contextual ActionBar,既可对GridView中的数据进行批处理。这里,需要给GridView设置MultiChoiceModeListener这个监听,可在此Listener中处理Contextual ActionBar Action Button的事件。他原创 2014-12-07 11:30:10 · 843 阅读 · 0 评论 -
使用 shapes 产生阴影效果
使用自定义shapes可以让你的视图快速地产生阴影效果。方法是先定义一个阴影层(layer)作为背景,再定义一个内容层,放到背景上面。注意要错开两个layer,一以产生阴影效果。例如:翻译 2014-12-07 11:04:21 · 1006 阅读 · 0 评论 -
[Android&iOS]改变特定文字颜色
iOSNSMutableAttributedString *attrString = [[NSMutableAttributedString alloc]initWithString:@"This is Gray"];[attrString addAttribute:NSForegroundColorAttributeName value:[UIColor grayColor] range:NSM原创 2016-09-21 17:17:02 · 394 阅读 · 0 评论