Z indexing image view over another Image view (Android) - android

I was worried if an Image view over another image view can be z-indexed? and brought to front or back. Is there any options for this?
Thanks in advance.

you can use frame layout to achieve that. Have a look a look at this link

You can use one ImageView for that.
If you want to switch between images in an ImageView you can use a LevelListDrawable.
If you want all images to be drawn in a certain z-order you can use a LayerDrawable.

Related

Moving an image inside in other frame image android

I have a frame image and another image selected from gallery. What i want is to place that image inside the transparent part of that frame image and also I can apply onTouchListener on the image selected from gallery.
Like in the app whose link is provided following.
https://play.google.com/store/apps/details?id=com.lyrebirdstudio.pipcamera
Any idea or concept will be helpful.
My IDEA
Here is what i am thinking to create a relative layout and setting the Picture Frame as a background and then scaling the other image according to the size of the relative layout. Then i can apply onTouchlistener on the image easily.
Am i going in right direction or there is some better way though which i can achieve the desire results?
Thanks in advance.
http://stacktips.com/tutorials/android/how-to-drag-a-view-in-android
OR
how to drag an image by touching in android?
hope it helps..

Is imageview needed within this imageview?

I use an ImageView to display the entire image. I want to launch the next activity when the sun is touched. Is it possible by using this single image or should i use separate imageview for sun? I know how to do it with separate imageview. I want to know whether it is possible by using only the full image?
Use two imageviews
Easier and less bug-prone

How to make glow effect in image view for a small part

I want to make a small part of the image glow whenever the activity is loaded. Do I need to take the exact coordinates of the image part?
I recommend using a GIF. It can be loaded as an image and won't require any changes in your code. A smallish tutorial can be found in this Youtube video.

How to zooming whole gallery?

I try to display images with gallery view and it works fine, now I would like to add a zoom but the WHOLE gallery, not selected image.
The point is that all images are expanded and increased spacing between them.
How to do it?
Not sure how you plan to do it, but if you just simply change all the candidate image size, the space among them would get bigger proportionally.
You can try setup the style of each frame in the gallery view. Steps are like:
1. override the gallery adapter, implement the getView funciton.
2. for imageView, setLayoutParams, setScaleType, both of which can be reference in the imageView doc, read the doc and adjust the params.
Put images into WebView. Actually make html page referencing your local images, put it into <table> element, and let WebView provide zooming. This will be fast, hw-accelerated, and will zoom as you desire.
Would it be good solution to change size of Gallery widget from code as well as space between images, according to zoom level, so it fits to your needs?

How to Align images one over another in android?

I want to align images one over another ie like collage. The images are from Gridview.The image should overlap one over other.plz any one help me to solve this.When clicking those images it should expand .. pls provide me some source code to solve this or provide some similar example
Thanks in advance...
Have u ever thought to use 9-patch image.On the click of the image u can just give the Patch Scale.And to overlap image over an image its better to use FrameLayout rather than The GridView.

Categories

Resources