I am creating an application.I am overlapping two image on each other. My image is bigger than screen so imageView is adjusting it .I want to know that images are overlapping each other or not ...if they are not overlapping then how should i do that they overlap to each other....
this is image now image now i want to overlap this image but i want to make sure tht this image should be overlap to each other properly ........
Related
I have an app with a linear vertical layout that has an image on top with some parameters overlaid on it (for example: a resturant image will have parameters like rating, ambience etc.). When user scrolls down and when the image gets hidden, I want to add a small panel on top with thumbnail of the image and some of the details that were earlier overlaid on the image.
When scrolled on top, the panel will get hidden and bigger image in the imageView will again appear with overlaid data.
How do I achieve this?
Image showing how it should look after scrolling
I'm stacking ImageView's on eachother from bottom to top (by layout_above), but what I want to make the top one overflow/overlaps the screen. Normally this would resize/crop the imageview to make it fit in the screen, but I want to to be like in the picture shown below.
How would I be able to achieve this?
Currently, I have an XML file with lots of imageviews in it that can be scrolled through using navigation buttons. These imageviews can be rotated, scrolled and moved but when they are they will leave the bounds of the imageview and so you cant see parts or all of them.
Is there any way that I can resize the imageview programmatically at the same rate as the image is being scaled?
Alternatively, is there a way that i can draw the images to a canvas and each of them can be scaled individually?
I have working sample of image gallery.
Now if I have 10 images in gallery, few of them gets displayed initially, lets say 3 (based on image thumbnail dimensions), and rest of the images can be viewed by scrolling the gallery.
I want to change this a bit.
Based on image thumbnail dimensions, few images should be displayed initially and instead of scrolling, there should be previous and next buttons, on click of which images will shift left or right.
Any help appreciated.
You can use gallery and onButtonPress call onFling (for smooth scrolling, or simple select next image) event to change selected item.
Or you can use LinearLayout, calculate image dimensions runtime, create child imageViews for parent linearLayout and onclick fill this views with your images
I'm an android-newbie and I'm looking for a solution, how to overlap a horizontal-scrolling image-gallery with a vertical-scrolling image-gallery. that means one transparent image of the vertical-scrolling gallery should overlap one image of the horizontal-scrolling gallery (like a cross).
furthermore it should be possible to scroll either vertical or horizontal so that the image of the vertical-scrolling gallery or the image of the horizontal-scrolling gallery will change. is there an way ?
thanks a lot!
Just an idea, but what about a 3x3 table layout like so:
--VG--
HGIVHG
--VG--
where VG means vertical gallery, HG is horizontal gallery, IV is an image view and -- is just an empty frame layout.
Now, you have two image lists, the vertical and the horizontal list. You remember the image list states and always recognize the focused images in your data model. The two focused images are composed in the centered image view, whereas the remaining images are distributed in the adjacent galleries. It's a bit of effort but should work.