I am trying to create an application which has a map image in it.
I want to add some areas (or buttons) to it so that when you click them the bubbles with information will appear.
I am new in android programming so asking to explain a bit how to implement it?
Also i need an image to be re-sizable just like a real map.
So should i attach the buttons to specific places on image and how to do so that the buttons will be connected to it when i re-size an image?
Which image type is better to use for this purpose? I heard that SVG would be better but i couldn't even add svg image to an application.
I appreciate any helpful advice.
For your problem you can use this:
http://catchthecows.com/?p=113
I need something similar, but the click on the image should change the content of that part as well.
When I find or implement the final solution I can post it here.
Related
Hi.
I am trying to implement a feature in the app that blurs some part of an image based on users (selection/touch) the selected area. I have implemented the code for whole image. But I am unable to find any example for the specified area of an image. So, please help me which type of example will use.
Just search before posting here :
Use this to blur your photo :
https://futurestud.io/blog/how-to-blur-images-efficiently-with-androids-renderscript
And use this to select the area you want
http://code.tutsplus.com/tutorials/capture-and-crop-an-image-with-the-device-camera--mobile-11458
Use this to blur image sample example:
http://javatechig.com/android/how-to-create-bitmap-blur-effect-in-android-using-renderscript
I found it by the below link:
http://trickyandroid.com/advanced-blurring-techniques/
Now i am going to develop this link to drag and drop the selected blur area. But i am not getting to drop this blur in other area. please help for this.
I want to realise and implement a function. But I do not know what the skill name is what.
I reference the Gallery APP in android I found that Gallery have a function is when user browse the picture, the picture will display and dismiss automatically when it reach screen edge.
Just like the picture I draw, picture will show when it reach the screen edge.
It's called Horizontal ScrollView.I also reecomend this library to you: https://github.com/lucasr/twoway-view Have a look here too: https://www.airpair.com/android/horizontal-image-galleries-android-studio
There is a library on github may be also helpful: AndroidImageSlider
I have created a app to find the hotels, I am using a slider to show all images related to the hotel's. But I want to get the first image after the last slide in circular fashion.
Get idea through below Picture, Because I want to achieve it in same way.
Sliding SlidingSlidingSliding
All image must be in circular fashion with no end point for image in gallery while sliding.
Please have a look at the below library called InfiniteScrollView.
I think this will do exactly what you are looking for.
https://github.com/satansly/InfiniteScrollView
I have an image that is circular and I want to make the other junk in the image to be transparent. I've spent the last hour looking around and I can't seem to figure out how this is done for android. Any help is greatly appreciated!
I haven't worked with Android but on iOS pngs weren't loading for me when I made them in photoshop but when I made them in flash all of a sudden they would work! Try that first :)
Anyways, you want to google something along the line of "pixel arrays android code" you can create an array of each pixel, find an individual color, then make it transparent...
But I really think this is just a GIMP issue and you don't need to go through all of that hassle.
what i can understand from your uncleared words is that you want to display transparent image of a normal image you have . so i would suggest don't do it through programming . create a transparent image through any image editor tool and use it .
if image is dynamic that you cant go in this way so use Matrix and setAlpha . search over net for both the terms
i want my gallery application to be modified , like coverflow. but not exactly like coverflow. the images in the gallery view should be viewed in such a way that it should look like reverse letter "U" . i want to change the angle image in such a way that it has to go slightly go above the previous image so that i can achieve the reverse "U" for gallery view.
There are already widgets out there that you can consider using. I found one http://www.inter-fuser.com/2010/02/android-coverflow-widget-v2.html that looks very good, but it might not be exactly what you are looking for.
Here is another one based on the interfuser widget. http://code.google.com/p/android-coverflow/.
They claim to have improved the performance of it.
Whether you can use them as is or not, you can probably use the source as inspiration.
You can use preRotate or postRotate methods in android.graphics.Matrix. Check them once.