![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android开发
zy929
这个作者很懒,什么都没留下…
展开
-
tools:context=“.Activity Name”的含义
[html] view plaincopyprint?TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerHorizontal="true"转载 2014-10-09 16:39:30 · 358 阅读 · 0 评论 -
android自动设置当前ImageView控件的颜色与其背景色相反
有这样一个需求:在当前背景图片上有个返回按钮,如果背景图片的颜色和当前返回按钮的颜色相同,不就看不到返回按钮了嘛?怎么破?解决方法:获取当前返回按钮所在坐标点的背景颜色,然后对颜色进行取反操作获得新颜色,再对返回按钮添加颜色过滤即可。如图:代码://获取返回按钮当前的坐标 float x = iv_back.getX();原创 2015-04-23 11:22:24 · 4576 阅读 · 0 评论