I want to change bitmap images (.png) in my android application to SVG images. I work with the android basic engine.
what is the best solution?
thank you for help :)
SVG is not a image supported by android
http://developer.android.com/guide/appendix/media-formats.html
That means you need custom code to make it work
I haven't tried myself but a quick google search and voila
http://code.google.com/p/svg-android/
Related
Explanation: I am new to android. I don't know how to load panorama image in my android application.I tried more it's loaded from the drawable folder. But, i want to load it from the url to my android application.
Many of people suggest me to use panoramaGl ready-mate library. i tried this libraries too but not gave the output as much i expected.
Please, help me what is the best solution to load panorama image from url and load into my android application.
Kindly refer, it may help
PanoramaImageView Library with guidance in Android App
Another option is to use Panoramagl-android library
I am using https://github.com/JoanZapata/android-pdfview to render PDFs in android. For some PDFs the rendering is very fast and clear but for some the rendering is very blurry. I tried toying with 'GRID_SIZE' field as suggested by the 'Issues' forum but that did not seem to help. Can someone offer any suggestions ?
I resolved the issue by using MuPDF reader(https://github.com/deepankar1994/MuPDF_For_Android).
This lib can easily load and display PDF files:
PdfViewPager
Hope it helps to you
I am beginner in Android development. I need to show 400+ images in my android app. Right now I am putting all of them in my drawable folder, but this doesn't seem good, as my apk becomes too large in size. What should I do? Can I play with images' resolution and all? Please help.
best solution will be to put them in web and then displaying it through lazy list, But if thats not an option then only thing you can do is to compress your image to a extent it is acceptable, that will check you problem of large apk size.
try PNGOUT , a great tool for compressing images.
Put them all in a extension-obb-File:
http://developer.android.com/google/play/expansion-files.html
So I handled it with videos.
Do 9-patch images work inside an Android WebView? I haven't found anything that definitively answers it one way or another. I know there's a project that uses Javascript to mimic it on the web (https://github.com/chrislondon/9-Patch-Image-for-Websites), so I figure to use that as a workable alternative but wondered if anyone else had ideas.
I think it is feasible and there are several ways that we could have a try.
Do it in js/css. Just as you mentioned, there are several js plugin that support parsing 9patch. And css3 also has a new feature named border-image, which could achieve the same result.
Do it in android. If it is only used in android, we can use WebView.addJavascriptInterface() and enable js to invoke android code. When javascript want a image, it send the image uri and desired size of the image to android. Android try to load the image and use NinePatchDrawable to parse it. Convert it to a bitmap and return back.
In my android i am using progress dialog for showing loading screen but is it possible to use gif images.
Could any one please let me know how to use gif images for loading.
Please share your valuable suggestions.
Thanks in advance :)
Android: How do a display a large animated gif given a url?
And checkout the BitmapDecode given in APIDemos.
As far as I know, Android doesn't support GIF images' animation, so you'll perhaps have to try the other way around: create separate images for each state of your current GIF, and animate them using Android 2D animation.
This is manual, and time consuming, but sadly this is what I can suggest.