Now I want to make a effect,when my finger touch on a picture on the screen, the picture will be show from the top of picture to the position I touched exactly.Can you give me some advice to achieve this effect.Thanks a million,whether or not you will be able to help me.
Not the solution, but a clue:
You will probably need to implement your own animation which will scale / translate your image. There is a lot of tuts on google.
I hope this will help you.
Related
I have been trying to achieve this for a long time. But not being able to. So I did really need some help here with this.
Current method - refer the below image
like you see above, , marker image is an ImageView and is properly placed so that the tip of the marker is pointing to the center of the screen. And fetch a latlon I will be reading maps idle or move state and will use the below methods to get the latlons.
googleMap.getCameraPositionLatitude();
googleMap.getCameraPositionLongitude();
But, the real problem is with the below format which I want to achieve. because this would improve UI/UX as the view is placed in a place where user can view the location clearly to which he is pointing to clearly(of-course the bottom part of the screen would be filled up with suggestions or any further changes that I think of).
Please refer the below image -
Here I am stuck. i dont find any methods that provide me latlon from that portion of the screen. I really need help from you guys to solve this. i want to pull the location from where the tip of the view is pointing w.r.t the second image (above image). if I use googleMap.getCameraPositionLatitude();
googleMap.getCameraPositionLongitude(); Which is in appropriate as it will get me latlons from center of the screen.
kindly help me out with this !
Thanks in advance :)
You can use Map Padding for that. With .setPadding() method you can move map center to position what you need. Also take a look at this question of David.
Hi i want to draw a circle animation around an image view..can any one please help me out..
Thanks
Here is the picture...
I do not know this is what you want to do, but there are several custom views to help your work.
HoloCircularProgressBar
CircularImageView
Otherwise, you should draw a circle around image. Please refer this answer.
I have an activity that has just a image to show like graphical help. It has a lots of info and needs to be zoomed. I searched alot in diffrent sites and they say imageview is not zoomable. and i found complicated algoritjhms for it. i want to make my programm to zoom like many usual proggrams that zoom like my 2 fingers get further image zooms in and if they get close zooms out and and i want to user be able to move postion if image in image view bye moving his finger on it.if its impossible can i make that as background and do these functions on whole activity? thanks for helping
This SO thread should have everything you need to implement the pinch zoom. Alternatively you could have a look at the PhotoView library; an implementation of ImageView that supports zooming.
I want to move an image within a circle with my touch on move. I've been confused how to determine the coordinates circle boundaries when the finger moved.
For example I want to move this image like lock screen on android tabs.
http://cdn.alltouchtablet.com/wp-content/uploads/2012/03/samsung-galaxy-tab-7-plus-lock-screen.jpg
EDIT :
Now After learn the answer below, I managed to draw an circle image and moving this image around the screen.
And now, I want to restrict the image movement so that it only can moved in a circle, just like in the image above. Any ideas?
I hope you can help me. Thank you!
so I've actually not done anything like this but i know this tutorial : and the guy does something similar to what you want,
this video is one right in the middle of an entire playlist of tutorial videos if you dont get what he's doing check the previous few... as for moving the image in a circle i'm sure there'll be some way to set boundries :)
http://www.youtube.com/watch?v=9d4Wua-cxZs&list=PLB03EA9545DD188C3&index=32&feature=plpp_video
hope it was helpful!
I am developing a game and I want to give a smoke effect at the tail of the objects moving freely on the screen. I just created a bitmap and attached it at the end of object but the problem is that this doesn't look good because when the objects turns towards a new angle the effect doesn't curve it self. All I want is to know that how can I do this? Is there any possibility to give curve to the bitmap or another solution? I want to give a smoke effect at the tail of a bike. I hope someone will provide me a solution.
Thanks
Yes. Finally I got the answer myself so sharing it with you.
What I wanted was to give a smoke effect at the tail of a moving object such that when the object take turns in screen the tail should do the same.
What I do us that I take four bitmap images which gives a smoke effect when combined.
I recorded the points X and Y which the boat has passed from and then drew the bitmap on these points which solved my problem. I hope it will help someone else someday so I shared it.
Thanks