• 大小: 0.37M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-25
  • 标签: 图片  微信  

资源简介

实现了如下功能:

1、从相册选择图片,对图片进行了缓存处理,选择图片的时候,图片不会出现OOM

2、加入了拍照功能

3、加入了图库功能,可以让你的图片滚动起来了,如果你想使用该功能作为删除的话,只需要传递过去isdel = true 即可使用删除模式。

资源截图

代码片段和文件信息

package org.fireking.app.imagelib;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.fireking.app.imagelib.entity.ImageBean;
import org.fireking.app.imagelib.widget.ImageBrowserActivity;
import org.fireking.app.imagelib.widget.PicSelectActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.view.View;
import android.view.View.onclickListener;
import android.view.ViewGroup;
import android.widget.baseAdapter;
import android.widget.Button;
import android.widget.GridView;

public class HostActivity extends FragmentActivity {
GridView image_selector;
MyAdapter adapter;

@Override
protected void onCreate(Bundle arg0) {

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-12-06 07:41  imagelib-master\
     文件         544  2014-12-06 07:41  imagelib-master\.classpath
     文件          12  2014-12-06 07:41  imagelib-master\.gitignore
     文件         844  2014-12-06 07:41  imagelib-master\.project
     目录           0  2014-12-06 07:41  imagelib-master\.settings\
     文件         197  2014-12-06 07:41  imagelib-master\.settings\org.eclipse.core.resources.prefs
     文件         177  2014-12-06 07:41  imagelib-master\.settings\org.eclipse.jdt.core.prefs
     文件        1543  2014-12-06 07:41  imagelib-master\AndroidManifest.xml
     文件         422  2014-12-06 07:41  imagelib-master\README.md
     文件       51394  2014-12-06 07:41  imagelib-master\ic_launcher-web.png
     目录           0  2014-12-06 07:41  imagelib-master\libs\
     文件      110746  2014-12-06 07:41  imagelib-master\libs\nineoldandroids-2.4.0.jar
     文件      114737  2014-12-06 07:41  imagelib-master\libs\picasso-2.4.0.jar
     文件         781  2014-12-06 07:41  imagelib-master\proguard-project.txt
     文件         639  2014-12-06 07:41  imagelib-master\project.properties
     目录           0  2014-12-06 07:41  imagelib-master\res\
     目录           0  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\
     文件        7469  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\friends_sends_pictures_no.png
     文件        2283  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\friends_sends_pictures_select_icon_selected.png
     文件        1575  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\friends_sends_pictures_select_icon_unselected.png
     文件        3749  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\ic_del.png
     文件        7658  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\ic_launcher.png
     文件        3835  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\icon_addpic_focused.png
     文件         367  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\pictures_select_icon.xml
     文件        7140  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\tk_photo.png
     文件         472  2014-12-06 07:41  imagelib-master\res\drawable-hdpi\yt_btn_back_normal.png
     目录           0  2014-12-06 07:41  imagelib-master\res\drawable-mdpi\
     文件        3777  2014-12-06 07:41  imagelib-master\res\drawable-mdpi\ic_launcher.png
     目录           0  2014-12-06 07:41  imagelib-master\res\drawable-xhdpi\
     文件       12516  2014-12-06 07:41  imagelib-master\res\drawable-xhdpi\ic_launcher.png
     目录           0  2014-12-06 07:41  imagelib-master\res\drawable-xxhdpi\
............此处省略74个文件信息

评论

共有 条评论