liuling07 / photopicker Goto Github PK
View Code? Open in Web Editor NEWAn android library to pick photo from gallery
Home Page: https://raw.githubusercontent.com/liuling07/PhotoPicker/master/sample.apk
License: Apache License 2.0
An android library to pick photo from gallery
Home Page: https://raw.githubusercontent.com/liuling07/PhotoPicker/master/sample.apk
License: Apache License 2.0
support to select videos?
加载了bitmap factory 解析不了的图片时,bitmap变为空。在imgaeLoader 的getFormatBitmap里添加为null 返回false ,解决了
调用file.delete()方法后,本地图片被删掉,但是打开图片页面时,仍有占位,造成崩溃。
10-26 14:41:16.444: I/System.out(17766): java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.File android.content.Context.getExternalCacheDir()' on a null object reference
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.utils.OtherUtils.getDiskCacheDir(OtherUtils.java:113)
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.utils.ImageLoader.initDiskCache(ImageLoader.java:145)
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.utils.ImageLoader.init(ImageLoader.java:63)
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.utils.ImageLoader.<init>(ImageLoader.java:58)
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.utils.ImageLoader.getInstance(ImageLoader.java:110)
10-26 14:41:16.444: I/System.out(17766): at com.lling.photopicker.adapters.PhotoAdapter.getView(PhotoAdapter.java:198)
10-26 14:41:16.444: I/System.out(17766): at android.widget.AbsListView.obtainView(AbsListView.java:2346)
10-26 14:41:16.444: I/System.out(17766): at android.widget.GridView.onMeasure(GridView.java:1065)
10-26 14:41:16.444: I/System.out(17766): at android.view.View.measure(View.java:18811)
你好,当我app也有一个application时,lib会无法获取context,抛NullPointerException
<application
android:allowBackup="true"
android:name=".AppApplication"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme"
tools:replace="android:name">
目前经过查找资料使用的方法是:我的application继承你lib中的application解决的
http://stackoverflow.com/questions/7157501/is-it-possible-to-get-applications-context-in-an-android-library-project
请问还有其他的解决方法吗?
i have problem in photo floder's first time animation.
i use translation animation to show the viewstub list,but the first time,it just appear without any animation.
the reason i find is that the view is not rendered so the animation doesn't work.
but why I user ObjectAnimator.ofFloat(view...) works well?
拍照完畢通知系統相冊更新:context.sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, Uri.parse("file://" + path)));
獲取手機内部所有圖片 :Cursor mCursor = mContentResolver.query(imageUri,null, null,null,Media.DATE_ADDED+" desc");
遍歷相冊的時候:用do{} while();結構,確保獲取第一個
相冊為空時候:if (!mCursor.moveToFirst()){ mCursor.close(); return floderMap;} 游標是否爲空 相應的地方均要做判空處理
在设置的是显示相机且为单选的情况下:
相册没有照片时不显示相机,点击左下角图片会崩溃;
如果有一张图片,会显示相机,但不显示图片
崩溃问题我加了判断了,显示问题不知道怎么修改,能否指教下,谢谢!
二次打开时展示已选图片,加上这个功能更好用
启动就蹦,手动开了摄像和存储访问权限后才能运行。选择图片时往下滑就会报错,在PhotoPickerActivity的OnDestroy加
if(mProgressDialog != null){
mProgressDialog.dismiss();
}
后面滑动还是会报空指针错误
当图库的数量为零的时候点击所有图片会崩溃
怎么不上传到maven仓库,module里面的application与项目里面的application冲突
拍完照之后再加其他图,拍的照片会消失
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.