package com.example.customshapedemo;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Bitmap;import android...
分类:
其他好文 时间:
2014-11-20 18:26:22
阅读次数:
217
开发App过程中,免不了要进行网络请求操作进行数据交换,比如下载图片,如果自己写一个下载图片的类进行操作的话,要考虑太多太多内容,必须线程池,内存溢出,图片磁盘缓存操作,图片内存缓存操作等等,相当麻烦。好在伟大的开源者们已经写好了一个比较完美的开源类库供大家使用Android-Universal-Image-Loader,这个类库已经被许多知名的软件所采用,当时我自己用这个开源类库的时候,百度了一大推,有查看了官方文档。现在把记录写下来供大家参考...
分类:
移动开发 时间:
2014-11-20 15:26:42
阅读次数:
271
转自:http://blog.csdn.net/shulianghan/article/details/18046021 ? 主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar及其他如Dialog、T...
分类:
移动开发 时间:
2014-11-20 13:50:46
阅读次数:
538
1. Titanium中,通过ImageView Controller 显示图片,图片地址要放在app/assets下,然后自己建一个文件夹,把图片放在这里。如下图,然后alloy代码: 完事。2. 图片没有占满整个屏幕?--没关系,在tss文件中, width: Ti.UI.FILL 即可。3.弄...
分类:
移动开发 时间:
2014-11-19 23:41:43
阅读次数:
299
参考自:http://blog.csdn.net/lmj623565791/article/details/24555655package com.example.customshapedemo;import android.content.Context;import android.conten...
分类:
其他好文 时间:
2014-11-19 20:07:22
阅读次数:
214
一,快速使用(确保ImageLoader只初始化一次,这样图片缓存会更加优秀。)场景:为ImageView设置一张指定Uri的图片。1,导包,配置联网,读写SD卡权限。2,初始化:ImageLoaderConfiguration config = new ImageLoaderConfigurati...
分类:
移动开发 时间:
2014-11-19 18:10:45
阅读次数:
230
例如在适配器中: 设置监听:? viewholder.g_imageview_item.setOnTouchListener(onTouchListener); View.OnTouchListener?onTouchListener?=?new?OnTouchListener()?{
@Override
public?boolean?onT...
分类:
移动开发 时间:
2014-11-19 11:36:03
阅读次数:
295
#import "QYViewController.h"
@interface
QYViewController ()UIScrollViewDelegate>
{
UIImageView *_imageView;
}
@end
@implementation QYViewController
- (void)viewDidL...
分类:
其他好文 时间:
2014-11-19 11:19:17
阅读次数:
179
#import "QYViewController.h"
@interface
QYViewController ()UIScrollViewDelegate>
{
UIImageView *_imageView;
}
@end
@implementation QYViewController
- (void)viewDidL...
分类:
其他好文 时间:
2014-11-19 01:21:03
阅读次数:
152
我们都知道Imageview中有不同的拉伸比率,比如fitStart,centCrop这样的,所以imageview中的drawable不一定和imageview占有相同的位置和大小,那么怎么计算呢?思路:1.得到imageview现在的宽高2.得到imageview现在显示的区域(Rect)3.得...
分类:
其他好文 时间:
2014-11-18 09:04:59
阅读次数:
252