https://github.com/nostra13/Android-Universal-Image-Loader
整合上述源码
资源是好不容易下载到的,关于代码,没什么好说的。
说点这期间遇到的问题。
漫画 的每一话大概有20几个页面,实际都是jpg图片,那么这里就涉及到
展示图片,但要确保不出现OOM的异常。
“
当然google的android也为我们封装好了若干...
分类:
移动开发 时间:
2015-01-14 14:20:09
阅读次数:
274
android 图片轮播动画 /res/drawable/flag.xml /res/layout/splash.xml -->MainActivity.javafinal ImageView splashImageView = (ImageView) findViewById(...
分类:
移动开发 时间:
2015-01-14 12:43:53
阅读次数:
241
android paint cap BUTT ROUND SQUARE join MITER ROUND BEVEL...
分类:
移动开发 时间:
2015-01-14 11:08:46
阅读次数:
179
给图片添加水印的基本思路都是载入原图,添加文字或者载入水印图片,保存图片这三个部分
添加水印图片:
private Bitmap createWaterMaskImage(Context gContext, Bitmap src, Bitmap watermark)
{
String tag = "createBitmap";
Log.d(tag, "create a new bi...
分类:
移动开发 时间:
2015-01-12 22:38:28
阅读次数:
205
android图片压缩质量参数
在实用ImageLoader中,在配置DisplayImageOptions时,需要设置.bitmapConfig(Bitmap.Config.RGB_565)
那么这个 Bitmap.Config.RGB_565 是什么意思呢 ?
在android中的大图片一般都要经过压缩才能显示,不然容易发生oom,一般我们压缩的时候都只关注其尺寸方面的大小,...
分类:
移动开发 时间:
2015-01-12 16:36:28
阅读次数:
226
最近利用一周左右的业余时间,终于完成了一个Android图片剪裁库,核心功能是根据自己的理解实现的,部分代码参考了Android源码的图片剪裁应用。现在将该代码开源在Github上以供大家学习和使用,地址:https://github.com/Jhuster/ImageCropper,效果如下所示:我的大致计划是首..
分类:
移动开发 时间:
2015-01-11 06:21:20
阅读次数:
307
android动画的简单使用这里通过不断切换图片,达成动画效果。在布局中,定义一个ImageButton控件并设置好其位置。//布局文件//很简单,就一个控件<RelativeLayoutxmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tool..
分类:
移动开发 时间:
2015-01-10 18:33:11
阅读次数:
192
//使用Bitmap加Matrix来缩放
public static Drawable resizeImage(Bitmap bitmap, int w, int h)
{
Bitmap BitmapOrg = bitmap;
int width = BitmapOrg.getWidth();
int height = ...
分类:
移动开发 时间:
2015-01-07 18:51:51
阅读次数:
143
//通过openRawResource获取一个inputStream对象 InputStream inputStream = getResources().openRawResource(R.drawable.temp); //通过一个InputStream创建一个Bit...
分类:
移动开发 时间:
2015-01-07 13:07:07
阅读次数:
163
拍照后的照片有时被系统旋转,纠正步骤如下:1.先读取图片文件被旋转的角度:/** * 通过ExifInterface类读取图片文件的被旋转角度 * @param path : 图片文件的路径 * @return 图片文件的被旋转角度 */ public stat...
分类:
移动开发 时间:
2015-01-06 17:17:47
阅读次数:
146