In my apps i want to display images and text in three ways
ListView
GridView
FullScreen
i have 500+ images and text that i parse using JSON and store into SQLite.
I know how to create ListView & GridView but problem is I don't know how to create the custom layout.
I have image but due to my low reputation i am not able to post image.
I try to explain what i need.
I need custom fullscreen layout that has 2 buttons, one on the left and other on the right and between those 2 buttons I need Imageview that display the fullscreen image.
thanks in advance
Use UniversalImageLoader library, as it has all the modes you need. It also supports caching and lazy load, which you will definitely need on 500 images.
Related
I am trying to pick images from the gallery in my android application and I want to place them above each other,
but the problem is that I want to use only a single image view.
Does anyone know the code for that?
Thanks for your help.
how can get image from gallery and set this image on another image and edit this image for fix this on frist image??
(Sorry for my weak english language)
if you only want to display two overlapped images in UI try to use FrameLayout
how to overlap two images each other
but if you really want to combine those images you can do that through 'Canvas' class
How to combine multiple images into a single image in android?
http://www.jondev.net/articles/Combining_2_Images_in_Android_using_Canvas
I have a lot of images in scrollview, I would like to know how to layout them so they would be seen the same on different resolutions. Like if I rotate screen some images would fill the gap.(All activity is only images)
You can use GridLayout.
Check Heterogeneous GridLayout,GridLayout and Row/Column Span Woe.
It might helpful for you.
This issue is behond displaying an image on a gridView but rather about memory limitation and caching(recycling and reusing etc..)
Take a look at this link Displaying Bitmaps Efficiently and try to download a sample on the left called BitmapFun.zip
I add many ImageView to HorizontalScrollView, each ImageView load image from internet. But screen only display 3 ImageView.
I want to know what ImageView is on screen because I want to remove image from another ImageView that not display in screen.
Is there anyway to do that ?
Sorry for my bad English.
You need to consider using lazy ListView instead of <ScrollView> for your images. With a lazy ListView, the app won't download the hidden images until the user scroll to view them.
I'm not familiar with such a ListView but I think those links might help you:
Question: How to do a lazy load of images in ListView?
A solution implemented
Project: Android Universal Image Loader
Hey, I checked tons of tutorials and guides but somehow can't find it...
I need to include multiple images in my Android app. It's like an image viewer/slideshow.
Currently I switch between pictures from /drawable-mdpi dir simply with ImageView and adapter, using gestures to left/right. Works but nothing impresive :/
Basically I could use something like Android (2.1) gallery with some image show animation.
1st question: what's the best way to include many (50-100) fullscreen images in App?
2nd: is it possible to use ViewFlipper animations directly to images? or do i have to somehow populate Views?
1st question: what's the best way to include many (50-100) fullscreen images in App?
Any approach that only involves a couple of images being in memory at one time. Full-screen images are large; you will run out of RAM.
2nd: is it possible to use ViewFlipper animations directly to images? or do i have to somehow populate Views?
You would have to use ImageViews as the children of the ViewFlipper.
I would recommend sticking with what you have and just apply animations.