Displaying multiple camera images to Grid view

假装没事ソ 提交于 2020-05-16 02:24:13

问题


i want to display multiple images capture by camera to Grid view. i go through many questions how to do but non perfectly work for me. i use This to implement. but using this i am able to get the image in my image view but whenever i capture new image that image replace my older image. and now i am clue less what should i do to add camera images one after another. anyone know how to implement this then please help me with sample code. thank you in advance.


回答1:


Use the comment provided in the answer in this link:

showing camera capture image to gridview

This should serve your purpose. Hope this helps. Let me know if you face any issues

You maintain a list out the onActivityResult. Initialize the list as a class variable means

ArrayList<Contact> imageArry = new ArrayList<Contact>(); 

add this line after class definition when you declare your variables. That should make you add multiple images



来源:https://stackoverflow.com/questions/61039248/displaying-multiple-camera-images-to-grid-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!