I want to create an application of MEC Wheel in which there are two wheels(Images). Background image rotates through finger gesture, while foreground remains static. Also, I want that background image which is rotatable to be scale up. I have achieved it as well but when I rotate the image, it shown as crop. I am attaching the images as well.
I have resolved the issue by scaling it through code in onCreate() method.
imgMECWheel.setScaleX(mScaleFactorBackground);
imgMECWheel.setScaleY(mScaleFactorBackground);
Related
I am trying to create one rotate animation just similar to tick/cross animations where a moving tick gets converted into a cross and vice versa while rotating. The tick/cross animation is possible by using Vector graphics but how do i implement the same by using .png images on any imageview? I have gone through a lot of threads like https://www.geeksforgeeks.org/how-to-make-check-tick-and-cross-animations-in-android/
but not getting any relevant one, so please help me out.
Code I am using to rotate the imageview:
imageview.animate().rotation(360f).start()
Hey there I am developing an android app to add filters i am first getting the images from gallery and camera the i am overlaying another image in same image view but the problem is this that the image i overlayed is of fixed size. I want to resize and reposition it during run time. Watch this video for reference
https://youtu.be/kGbvO--RDwU
I just need your suggestions. I have overlayed the image perfectly. Now i just need to resize, repostion or rotate that image on run time
I am trying to implement a crop image for my app.
What I want to do is that I've an imageview set to 300x300 .I am taking images from
CAMERA and GALLERY now the images can be bigger than 300x300. I want to implement
a cropping tool using which I can drag the image inside imageview so that I can select the useful portion of 300x300 of the image.
I want to implement the same feature which this app implemented for cropping.
Can anyone point me in the right direction ?
Try this:
https://github.com/biokys/cropimage
But if you want to drag and fit useful portion of a image in a Imageview than you can use MultiTouch View.
https://code.google.com/p/android-multitouch-controller/
You can move the image on a custom view. Zoom and Pinch. Once you found the useful area. Take a screenshot of the imageview.
hope any of the solutions helps :)
I have successfully included RemoteControlClient in my app. However, I was wondering if there is any way to prevent the bitmaps thrown at it from scaling On all aspects. I can do this in my activity, scaling the vertical, and preserving the aspect , but throwing the scaled bitmap to the client has no effect. It always scales to square, filling the view.
Any suggestions?
I guess, create a black (or transparent?) square bitmap background and center your album artwork or whatever it is on it... Then send a square image to RemoteControlClient.
I created a simple application that will download a .jpg image every two seconds from a website and displays it in an ImageView.
I added to the ImageView the zoom functionality, but each time the image is updated the imageview back to original size. I would like to make sure that by increasing the zoom, the next update of the image, the ImageView maintained the dimensions that I set.
Can you please help me?
Thanks to all.
You need to compute for the ratio of the image and the current zoom level. You can do this by getting the current size and divide it by the original size. Pretty trivial stuff.
Then when the new image arrives, as soon as you replace the image, change the dimension of the image by the original value times ratio.