I am working on an app where I have to upload images to a recycler view from either the gallery or from camera. The recycler view should have a button where I can add the image from.
The image below shows what I am trying to achieve.
My question is, is there a library for android either java or kotlin that can help me achieve this?
Any help will be highly appreciated.
You can use UltimateRecyclerView library for your purpose
This library supports different layouts and many more other useful features. You can create different layouts for images and plus button and define different code logic by checking the position of the clicked item.
Related
So I have an app and in this app in the first activity you choose a image from the gallery or take a photo with the camera.
Then there are a few Activitys between the Activity I needed the picture. So how can I send this image choosen in the first Activity to the activity i need it in? I thought I can make it like these putExtra() Method but I was reading that I costs a lot of memory to send bitmaps to another Activity.
My Goal is to edit this Image as a bitmap in the last activity!
So who got some solutions how i can fix this Problem?! Any Ideas? Thank you!
I use Library called sandriosCamera, it is very costumizable and works in that it less than android 5.0 too (So use CameraApi and CameraApi2). It includes recent image in gallery picker and too shows a preview of the image doing a matrix (Rotate) when the image has an incorrect orientation.
Read this in android arsenal and look the github for the library code https://android-arsenal.com/details/1/4962
Then I pass with a putExtra() the image path (because of the image is temporal and then I need to getExtra() of the intent to have the path of the image in my SendActivity.
Hope it helps with all your problems.
PD: I recommend to download the master.zip and not to import as a library with gradle, because you can costumize if you want (But then you need to fix problems). Before of import to the gradle or manual I recommend too to update all your android tools, max version, etc.
I am currently using the MuPDF library from here: http://www.mupdf.com/
I've successfully compiled the library and everything is working great, though I am at a loss on how to achieve the following.
I want to attach views, such as button views, textviews, webviews and imageviews to the MuPDFReaderView. But everytime I try to add the view I fail to get any visible results, I can not see the attached view anywhere and I'm sure it's being added because when I debug it, the code is successfully run.
The reason I want to do this is to overlay views on the PDF view which will then scale and move along with the PDF document.
I ofcourse realise there isn't any code in this question, but I can't really post the entire MuPDF source code here, so here's what I think is relevant in a pastebin:
http://pastebin.com/qJFNsvdV
So yeah, how and where would I attach views to the document so they scale and move with the document properly?
We have a similar feature in our Android customizable magazine app, using muPDF: we add views on top on the pdf view to display slide shows or videos inside a magazine page.
This app is open source and available on Github. It should be easy for you to review the code, and see how we implemented this feature.
I am developing an app which takes picture in background.
but it uses a preview layout which is attached to an activity.
actually i need it as plugin which do not show preview. and camera app i have developed using class which extends an activity.
i wonder how can it be possible to make it without using an activity or preview layout.
please help on this matter.
You can hide the preview layout.
layoutname.setVisibility(View.GONE);
I am using Sergey Tarasevich's library Universal Image Loader in my Android project to load images into a ListView. At the moment I am loading my pictures in the getView() method in my adapter and everything works as expected.
The problem is I want to load some images (three or four) in advance so that the user doesn't need to wait for the images to load when scrolling. What would be the best approach to achieve this using Universal Image Loader?
You can use loadImage(...) for following images in getView(...) to pre-cache them.
I know that Android's Youtube app is not open source, but I pulled apart the apk with apktool and found that they have a class, YoutubeListView used frequently in their app. Is there already an open source implementation of the Youtube Player Activity's title/ fling view/ layout? I know of similar views like Joao Machete's FlingAndScrollViewer, but I need it to be rigge to a title menu and work as smoothly as that on the Youtube app. If there is no open source implementation, either how hard would it be to convince Google to release just that component's source, or to implement it myself?
Thanks
Btw, the footer in this layout is what I am talking about. It has titles like Info & Related videos that can be clicked and it scrolls to them, and it can be scrolled left and right.
I've come to the conclusion that there is no such view. It would be best to make my own custom layout.