_imageView.frame = CGRectMake(0, 0, width, height);_textLabel.frame = CGRectMake(CGRectGetMaxX(_imageView.frame), 0, CGRectGetWidth(self.frame) - CGRe...
分类:
其他好文 时间:
2015-07-22 20:31:41
阅读次数:
133
ImageView有scaleType属性可以缩放图片,让图片铺满屏幕宽度,但是会出现压缩或裁剪的情况。 ImageView的scaleType的属性分别是matrix(默认)、center、centerCrop、centerInside、fitCenter、fitEnd、fitStart、...
分类:
移动开发 时间:
2015-07-22 19:06:49
阅读次数:
149
Android开源项目第一篇——个性化控件(View)篇包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、其他Android开源项目第二篇——工具库篇包括依赖注入、图片缓存、网络相关...
分类:
移动开发 时间:
2015-07-22 12:46:18
阅读次数:
197
这功能源自负责app中要加一个显示gif广告图功能。 android自带控件不支持gif图片,网上很多通过扩展ImageView或View来实现支持gif图片,但在android4.0后,需要关闭硬件加速功能才能使用,而且也容易出现内存溢出...
分类:
移动开发 时间:
2015-07-21 19:08:40
阅读次数:
185
Author: MaddockDate: 2015-07-21因为做算法demo的需要,开发一点安卓的程序。需求:获取UI中图像中某点的坐标。参考:http://longshuai2007.blog.163.com/blog/static/1420944142011611105732712/http...
分类:
移动开发 时间:
2015-07-21 11:55:55
阅读次数:
124
FloatingActionButton是继承至ImageView,所以FloatingActionButton拥有ImageView的所有属性。CoordinatorLayout可以用来配合FloatingActionButton浮动按钮,设置app:layout_anchor和app:layout_anchorGravity构建出特定的位置与效果的FloatingActionButton。
...
分类:
其他好文 时间:
2015-07-19 15:02:22
阅读次数:
288
一、ImageView属性: android:src = "@drawable/ic_launcher"——ImageView的内容图像(可以和android:background = "#00000"同时使用) android:background = "@drawable/ic_launch.....
分类:
移动开发 时间:
2015-07-18 15:33:54
阅读次数:
125
版本号:1.0日期:2014.6.112014.6.12版权:© 2014 kince 转载注明出处 ImageView是开发中经常使用到的一个控件,也能够说是不可缺少的。对于它的使用。除了注意ScaleType的理解和设置外,还须要注意其它一些问题,比方设置一张大的背景图片内存占用和释放等。还有它...
分类:
移动开发 时间:
2015-07-18 10:54:16
阅读次数:
245
我的ListView中每行View包含一个ImageView、TextView、CheckBox。当ListView中有一个或一个一行CheckBox被选中就让ListView上面的Button显示,否则就隐藏。因此,需要对每行View中的CheckBox设置监听。我使用CheckBox中的OnCh...
分类:
其他好文 时间:
2015-07-18 09:28:24
阅读次数:
97
今天在自定义button时,遇到了关于layoutSubviews方法调用的问题,由于使用的是sizeTofit自适应的方法,所以初始化时并没有给按钮设置frame,,只是在layout方法里改变了titleLable和imageView的位置,按钮却能正常显示,就想到什么时候走了layout方法。
- (void)layoutSubviews{ [super layoutSubviews];...
分类:
其他好文 时间:
2015-07-17 18:46:41
阅读次数:
111