donglua / photopicker Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] Image Picker like Wechat
Home Page: https://play.google.com/store/apps/details?id=me.iwf.PhotoPickerDemo
License: Apache License 2.0
[DEPRECATED] Image Picker like Wechat
Home Page: https://play.google.com/store/apps/details?id=me.iwf.PhotoPickerDemo
License: Apache License 2.0
Hi, the library have a bug, it doesn't show me all images but few images
查看某些图片的时候图片会显示在scrollview的底部而不是居中显示,这样会造成一下子看不全的问题
如题。那么多的依赖。。。
When you use camera and press Save library throws this expection, if you try or check directories if null or not at line : 235 PhotoPickerFragment.java
me.iwf.photopicker.fragment.PhotoPickerFragment.onDetach(PhotoPickerFragment.java:235)
图片选中界面的颜色和toobar的颜色有没有办法改变
我发现使用该库会出现很多重复的相册;对比的微信的图片选择他会把相同名称的相册合并,于是乎猜测作者没有过滤相同名字的相册;不过看了代码作者还是比较了,但是仍然有大量相同的名字的相册没有合并;发现原来是me.iwf.photopicker.entity.PhotoDirectory.java实体类中,重写的equal方法也加入了id的比较,修改equal方法只对name进行比较;改过之后和微信相册基本一致,希望作者修复;
可以移除无用的资源文件ic_launcher.png吗?
因为会导致资源文件冲突,ic_launcher.png: Original is here.
主工程的ic_launcher.png可以重命名,但是其他第三方类库也没有移除ic_launcher.png,就比较难解决了。所以帮忙移除一下ic_launcher.png
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.rinc.ruprise.r, PID: 18888
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rinc.ruprise.r/me.iwf.photopicker.PhotoPickerActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$900(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5511)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at me.iwf.photopicker.PhotoPickerActivity.onCreate(PhotoPickerActivity.java:53)
at android.app.Activity.performCreate(Activity.java:5322)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2303)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
at android.app.ActivityThread.access$900(ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1281)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5511)
at java.lang.reflect.Method.invokeNative(Native
如题
When setPhotoCount is 1:
An image is selected (DONE message appears),
the image is unselected (DONE message disappears) <-- but check mark is still visible.
I/AppCompatViewInflater: app:theme is now deprecated. Please move to using android:theme instead.
I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
I/Process: Sending signal. PID: 13914 SIG: 9
I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
E/HAL: load: id=gralloc != hmi->id=gralloc
E/HAL: load: id=gralloc != hmi->id=gralloc
I/OpenGLRenderer: Initialized EGL, version 1.4
W/OpenGLRenderer: load: so=/system/lib64/libhwuibp.so
dlopen failed: library "/system/lib64/libhwuibp.so" not found
W/OpenGLRenderer: Initialize Binary Program Cache: Load Failed
E/HAL: load: id=gralloc != hmi->id=gralloc
手机是6.0的华为荣耀,别的手机没试过
1、在拍完照回来返回选图时,所有图库的列表会增加拍照的图片,但是Picture文件夹中并没有增加,这里应该少了相应路径list的新增图片滤镜;
2、如果在选图界面点击home键返回桌面,但不退出该应用。如果使用系统相机或者其他相机拍照后,再切换回应用的选图界面,图片列表并不会实时更新。需要退出后,重新加载一次这个PhotoPickerActivity,再去扫图才能显示出来。所以是否有更好的刷新图库的方案?
java.lang.NoSuchMethodError: No virtual method getContext()Landroid/content/Context; in class Lme/iwf/photopicker/fragment/PhotoPickerFragment; or its super classes (declaration of 'me.iwf.photopicker.fragment.PhotoPickerFragment' appears in /data/app/com.nake.app-1/base.apk)
when pick from camera i won't The image will not will be saved on the device
图片上传不上来,把代码贴上来好了
public class PhotoPagerActivity extends AppCompatActivity {
private ImagePagerFragment pagerFragment;
public static final String EXTRA_CURRENT_ITEM = "current_item";
public static final String EXTRA_PHOTOS = "photos";
private ActionBar actionBar;
没有EXTRA_SHOW_DELETE
Target sdk is on 23, but no permission check on demo, hope to added some day.
在VIVO手机用不了呢,图片都显示不出来 我是用优测云手机测试的,图片都是裂图
华为机子测试的,麻烦up主看下~~
还有预览时,图片可滑上滑下的,左右滑动切换上/下一张的时候图片有好些情况会不居中出现,大部分会出现在底部
RT
0.2.8
版预览本地相机(1300w)拍的照片时失败,Glide
抛尺寸过大异常,0.2.6
版则能预览
Hi, thank you very much for this amazing lib. Please how can I select a gif ?
非常实用!谢谢
How can I disable clicking on images to view them? everytime I try choosing an image by clicking on the checkbox, I end up opening the image instead (which in my point of view is not very usable)
第一次进入图片选择器时,快速向下滑动,点击一张还未显示缩略图的图片,打开了预览页,但是不显示图片,界面一直处于半透明的状态,透过页面看到当前可见页面的缩略图加载完成后,此时某些机型能显示出当前打开的图片,某些机型则还是处于半透明状态,一直不显示要预览的图片。这种情况下,即便关掉图片选择器,再次打开,刚刚那些无法预览的图片依旧点开是半透明,无法预览。
I've run into this problem a couple of times.
When I click on a thumbnail, the debugger says, "Out of Memory" error.
I think this guide can help: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html
I can take a look at your code when I am free.
Thank you.
华为X2闪退,其他手机都行...
或者说是有时候读取的图片图库已经不存在。比如被删除了。但是用它的时候似乎依然在,但是用做bitmap直接bitmap.decodeFile拿到的为null
Thanks for this great work
提个建议:
对于图片多选择情况下,如果选择摄像头拍照,拍照后得到的照片,建议默认就是选中状态。
如果是单张图片,建议直接返回图片结果
另外如果选中照片到达max后,可以限制不让点击拍照或者拍照后返回的照片不再选中。
如题
06-16 10:19:00.176 1220-1220/me.iwf.PhotoPickerDemo W/System.err: java.io.IOException: open failed: EACCES (Permission denied)
06-16 10:19:00.178 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at java.io.File.createNewFile(File.java:941)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at java.io.File.createTempFile(File.java:1006)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at me.iwf.photopicker.utils.ImageCaptureManager.createImageFile(ImageCaptureManager.java:44)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at me.iwf.photopicker.utils.ImageCaptureManager.dispatchTakePictureIntent(ImageCaptureManager.java:61)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at me.iwf.photopicker.fragment.PhotoPickerFragment$4.onClick(PhotoPickerFragment.java:158)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at me.iwf.photopicker.adapter.PhotoGridAdapter$1.onClick(PhotoGridAdapter.java:79)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.view.View.performClick(View.java:4909)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.view.View$PerformClick.run(View.java:20390)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.os.Handler.handleCallback(Handler.java:815)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.os.Handler.dispatchMessage(Handler.java:104)
06-16 10:19:00.179 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.os.Looper.loop(Looper.java:194)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5803)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at java.lang.reflect.Method.invoke(Native Method)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at java.lang.reflect.Method.invoke(Method.java:372)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1010)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
06-16 10:19:00.184 1220-1220/me.iwf.PhotoPickerDemo W/System.err: Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
06-16 10:19:00.185 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at libcore.io.Posix.open(Native Method)
06-16 10:19:00.185 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
06-16 10:19:00.185 1220-1220/me.iwf.PhotoPickerDemo W/System.err: at java.io.File.createNewFile(File.java:934)
06-16 10:19:00.185 1220-1220/me.iwf.PhotoPickerDemo W/System.err: ... 15 more
photoGridAdapter = new PhotoGridAdapter(getContext(), directories, column);
没有找到 getContext()方法
先勾选一张图片,再次点击当前被勾选的图片,右上角完成消失,但是当前图片的勾还是存在的,并且再次点勾没有任何反映。
使用此组件进行图片选择并发布内容后,再次编辑时,内容图片都是从网络上加载以供编辑的,这时图片预览组件就没法使用了
更新到最新的0.8.3,发现REQUEST_CODE无法自定义了,变成了固定的233.
有这样的业务场景,一个页面有多处要选择图片的地方(不确定具体个数),用循环为每个地方绑定一个点击选择图片的事件,用的是各自唯一的REQUEST_CODE(使用随机值,生成并维护起来),这样在onActivityResult中就可以区分出是哪边点击了,图片可以显示到该显示的地方。
现在新版固定了REQUEST_CODE,在这种场景下,无法满足需求
As Marshmallow need to give permission, I have added Permission Checker code too, still I am getting problem to when trying to open Camera:
Error : open failed: EACCES (Permission denied)
I had taken following permission also:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Is there any solution?
拍照会生成两张相同的照片
Hello,
I import this library using Gradle, how can I change the string inside the library to traditional chinese?
Thank You
这样可以记住当前的选择状态,不至于再次打开图片选择器时,选择重复图片
如题- -
Hello , is it possible to change the "done" text and "all image" text ? I need them in French or better be able to change them.
Thanks.
Great library by the way.
Never mind found it 👍
I've added this to my strings.xml
<string name="all_image">Voir plus</string>
<string name="images">Retour</string>
<string name="done">Ok</string>
Hello. Your library is great! Thank you.
Issue I have is with the "ALL IMAGE" folder chooser.
It repeats "ALL IMAGE", and "Pictures" for each taken picture. (After photo is taken from the camera)
i.e.
All image
All Image
All Image
Pictures
All Image
Pictures
All Image
Pictures
etc..
编译的时候直接报错
Exception failed for task ':app:transformClassedWithJarMergingFor_DebugDebug'.
com.android.build.api.transform.TransformException:java.util.zip.ZipException:duplicate entry: com/bumptech/glide/gifdecoder/GifDecoder$BitmapProvider.class
然后把Glide那个三方插件给移除后可以编译通过
应该是加载动态图那里有点儿问题,求donglua哥给解答下。
Hello, is there any possibility to change green color of selected image? It would be perfect. Thanks
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.