I am new to the Android development so don't mind asking me simple question like this.
I am trying to implement simple gallery from example http://developer.android.com/guide/topics/ui/layout/gridview.html, but I am not sure how to make clicked thumbnail show in full screen or something like that.
Also, it would be very nice if someone could explain to me how to, in this case, load images from urls via AsyncTask.
Thanks!!
Related
I'm making an application that integrates with Facebook Messenger right now, and I'm trying to make the screen that displays each individual conversation with people. An example would be this:
I apologize for the white on white background, but a button looking something like this is what I'm looking for (This is taken from the Facebook Messenger app). I can't figure out a way to create a button that has fields for a variable picture. I've crawled the web for hours trying to find something, but could only find resources to make an image an entire button, and not one that would encapsulate both an image and text.
Does anybody know how this procedure is done, or know of a good source to learn from? I feel like it's simple and I'm overlooking a key resource.
With this library you can create circle image
https://github.com/Pkmmte/CircularImageView
And create your own component
http://examples.javacodegeeks.com/android/core/ui/component/android-custom-components-example/
But in your case extends from RelativeLayout instead of TextView
Note: I need to create Gallery App like this. ie. first show sdcard folders thumbnail images first, then, when I click thumbnail, then, need to show another new page to show subimages.
like whatzup image upload, and Gallery App from play store..
Please help me anybody to come out from this.
when i search from google, only examples available like normal singles images showing gallery-view examples only.
Follow this steps:
1.Outer activity which display folders:
Create an activity with grid view of custom item.Each item is framelayout with image and semi-transparent background textview.
2.Second activity which display images:
Create an activity with gridview of images.
To learn how to create gridview,use this
Scan folders that you want to include using a method like this
Generate a thumbnail by opening an image from the folder and resizing like so.
Place these thumbnails in a gridview, possibly with a small overlay stating the name of the folder.
When a user clicks into the folder simply generate thumbnails the same way as above but for every image.
Go through this code - CM Gallery
It's the official CyanogenMod gallery's source code. This will help you a lot in understanding how does gallery work.
Also go through this tutorial which I found really useful - Android Gallery
Hi I want to have image gallery like this.I have tried using jazzyviewpager.It's good but doesn't have this effect. can anybody tell me how can i achieve this effect for showing images.
You can extend the gallery view class, use setStaticTransformationsEnabled(true) and handle item transformations by yourself in getChildStaticTransformation .
EDIT: One way to do achieve this goal, is available in as a sample in a tutorial I wrote, here: http://code.google.com/p/android-3d-carousel-view/ . However this is not exactly what you need, just a starting point that you can modify further on. The important aspect is to learn how to use getChildStaticTransformation .
I want to create a program that gets some images from a webpage, and shows them on a gridview. I dont know how many of them exactly. It could be from 20 to 30. Ill do it with asynctask, which i have allready used before and more or less know how it works. But i don't know which way use it this time.
For now, what i would like to get is a progressbar (circle clicking) while image is downloading. And once its downloaded, it would disappear and image will load. I will use an array of objects with an adapter, to fill the gridview.
Which way would you use the asynctask?
Thanks in advance.
I would suggest you check out Lecture 6 of Harvard Extension CS76. There is a URLImageAdapter and example source code that does example what you are looking for.
Best of luck
If you want to save downloaded images and reuse them in future then you must look DownloadManager
To display dialog with cycling circle, look this: howto use ProgressDialog
I have a Gallery and a few images stored in it.
On selecting the images i want some URL s to get opened on the top of this gallery(As a web view only).
For example If i click on a particular image i need a url to get opened.
I tried using ViewSwitcher and since I am a begginner i couldn move further.
Can someone tell if this is possible or suggest me the ways?
Check this link.
You basically need to use setOnItemClickListener and there add the code to lunch an url with an Intent.