Is imageview needed within this imageview? - android

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

Related

Set an image between coordinates

Here is an example of what I need to do:
First of all I convert the image into bitmap and then set it as background to a relative layout. And i know these four coordinates.
Then how can I get the image inside the box and set it to another layout as background?
Try to use Picasso when you are dealing with Images.
This is the link

How can set an image on the another image?

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

Create custom Imageview component that has a custom picture frame

I would like to build a custom component (extending from ImageView I guess) that display an image inside a frame specified by the user (the frame is a custom image) with inner rounded corners (Pinterest user icon like).
I started finding how to compose two bitmaps but it is a difficult matter so I am wondering if there is some opensource component/tutorial to better understand how to achive it.
The frame picture is a nine-patch png (I didn't understand how to load and scale it properly into a bitmap).
Thanks
Have you checked out this
Seems like it does the job, although I'm not sure how to implement.

Z indexing image view over another Image view (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.

Move the ImageView to EditTextView

In my application i want displaying the one image as half of the screen and below i am producing that image spelling and below display that image name letters as shuffled and kid will take one image and place into into that place in above spelling.For example see following website
//www.youtube.com/watch?v=_LSlYYu3F0k
For this how can i design my layout(xml)Please gice me some code suggestions.Thanks in advance
With a layout based on xml you wont get a result like that on the video.
You should use 2D/3D based SurfaceView/GLSurfaceView and draw on the canvas what you need and where you need it.

Categories

Resources