Android: how to achieve functionality like in facebook photo - android

I want to implement functionality same like in Facebook album viz. first it show blur image then clear version of that with swipe effect but I am not getting any idea from where to start from.
EDIT: I will be getting these images from webserver.

Actually what happens is:
Facebook show its thumbnail image(which is already downloaded) if the large image is not loaded. So it is not intentionally blurred.
and downloads the original image in background. and then sets the large image to that ImageView.
Numerous examples are available to show Gallery in Android.

afaik the "blurred photo" displaying in Facebook app is not actually an android feature, but more of how the embedded WebView handles images. Facebook App is basically just an embedded webview that hopes to look and feel like a native android app.
For the swiping gesture to view the next photo, you can use this.

Try making a custom class extending Android Gallery
And then try applying a blur effete on both Left and Right imageviews.

Related

How share MemoryImage?

I have image from rest API
Image.memory(result.bodyBytes).image;
I display this image in app.
Wish the user could share this image but i don't know how to do it.
It is only supposed to work on android.

Did Facebook change something about profile images?

I'm using the Glide library for my Android app in which most users have connected their Facebook profile and are using their profile picture from Facebook as their profile picture on my app. Suddenly today, without having changed any of the code, all images from graph.facebook.com aren't loading correctly with the exception of Facebook's generic profile pictures (what you will see as your profile picture if you haven't yet uploaded one). When I take the URL for the images and paste it in my browser, the images are now being downloaded into a file rather than displayed on the screen like they were in the past. Again, the exception is a generic image which will simply display within my browser like I had been used to.
Does anyone know if there was a change made on Facebook's end and if so, where I could find some sort of documentation of this change? Of course, I'm in need of a solution for how to actually display the images like normal again as well.
Here is the code for how I'm loading the image using the Glide library:
Glide.with(activity)
.load(user.getProfileUrl())
.placeholder(R.mipmap.ic_profile_zero_state)
.bitmapTransform(new com.zensports.util.views.CircleTransform(activity))
.into(mProfileImage);
user.getProfileUrl() should return a URL like https://graph.facebook.com/1670580029918211/picture?width=700&height=700
Thanks in advance.

How to add pictures from the gallery into the component 'Gallery' in ANDROID?

I need a example of how to add a 'X' number of pictures of the gallery into a component 'gallery' in ANDROID develop.
Please show me a simple example (it's for my personal knowledge).
Thanks a lot.
Here: http://www.androidinterview.com/android-gallery-view-example-displaying-a-list-of-images/, you can see an example of show images in a android gallery component using local images, if you want show images from device's gallery, then you can see this:
how to get the images from device in android java application

Multi-user thumbnail in android

I need to show a thumbnail of multiple users like in gmail does when there is multiple people in a thread.
The sample is as follows:
I'm looking at creating the first image in the listview.
Image Source: Gmail screenshot in Play store.
Wonder if this may help :
Render Two images in ImageView in Android?
http://androidattop.blogspot.in/2012/06/merge-multiple-images-into-one-image-in.html
Not sure if they can be really helpful, but something close to what your trying to achieve. You could probably even create a custom ImageView and use it instead of the standard ImageView

Combine two image in app and taking result as single image

I have an android app which can send screen shots to share on Facebook. What I want is adding some stuffs like my app logo/icon on image and save that as a single image and share that on Facebook. (something like what heel climb racing does).
How can I combine Images? A sample code or tutorial would be grateful.
You can use the Canvas class to work with images.
Check this SO question for more details: combining two png files in android

Categories

Resources