How to have the revolving icon effect? - android

You see the icons are in a revolving manner. How to achieve this on Android? Is it through OpenGL or can there be some other easier implementation.. This has been bugging me from months together and I just need a pointer or a breakthrough code. A tutorial would be of awesome help...Please help?

There is a project 3D Carousel, you can get it and Since the screenshot seems to be a customized Home Screen, so you have to provide your own customized Home Screen,

Google released a carousel example with source code as part of the "Designing Android UIs for Phones and Tablets" session at Google I/O 2011. You get the source here. It uses Renderscript to create the 3D effect.

Related

Water Ripple Effect Android

I am trying to find out a way to implement a water ripple effect on a bitmap. I have just idea and I didn't start coding yet. I done some research but I can't really find a good way to implement this so far. Do you guys have any clue on this ? openGl can do this ?
Any help will be much appreciated.
Yup. Working out of the box library there http://www.jhlabs.com/ip/filters/index.html
Just follow their examples.
BTW, was curious and kept searching, thereĀ“s a bunch of links in this question Android - How to apply diffenernt Image Effects on bitmap like sepia, blackand white, blur etc
Yes openGL can do it. You can use Android OpenGL ES 2.0/3.0 Engine - Rajawali ,this engine support Virtual Reality as well as Augmented Reality .
You can use Rajwali to create water ripples as shown in this example :-
https://github.com/Rajawali/Rajawali/blob/master/examples/src/main/java/org/rajawali3d/examples/examples/effects/TouchRipplesFragment.java
You can download and see example from PlayStore

Android custom views: rotating wheel, "spinner" control

Are there any existing implementations of rotating wheel, spinner like (not the actual android spinner) controls for Android?
Example:
There are a couple of things that are similar that you should be able to modify to your needs.
As mentioned in the comments, you can use the Mind The Robot Analog Rotary Knob, which is a bit rough around the edges but you could use it as a base.
There's also a step-by-step walkthrough for creating a Rotating Dialer, which again isn't exactly what you're after but could be modified further.
The last one might be the most promising, which is a Rotary Knob Widget, the author states that the implementation could be useful as a volume control, which closely resembles your original picture.
Here is a totally awesome dial control for android https://bitbucket.org/warwick/hgdialrepo
It's well tested and very stable.
Here is the youtube demonstration: https://youtu.be/h_7VxrZ2W-g
The library comes is a demo app and source code.
Uses Canvas
Hope this helps.

Android Development: How do graphics work in Android?

I am an android development beginner with some experience in other object oriented languages like java, python, c#. So I have created various games before in Java, using buffers and graphics to draw lines and stuff. How do I do that stuff in android? I looked at some online guides, and they all seem to create a class to extend a View object, and the class will overrule the onDraw method, where they can cause the Canvas or something to draw a line.
But what if you want to draw a line based on user input? That method wouldn't work then would it?
For example, what is the simplest code for which I could draw a circle where the user touches the screen?
Also, i was wondering what books people would reccomend for beginners, especially one that includes stuff on graphics? I user the developer site for android, but I feel a book would also help a lot to understand android? Any suggestoins?
Thank you for your time, I greatly appreciate it!
There you go, this book is definitely what you need to read: http://www.amazon.com/Pro-Android-Media-Developing-Smartphones/dp/1430232676
what is the simplest code for which I could draw a circle where the user touches the screen?
Either use SurfaceView to draw or create a custom View handling onDraw() and onTouch()
Here is a suggestion ... load the API Demos app into Eclipse and explore the Graphics demo source code. There are a large number of graphics demos.
To load the API Demos app, in Eclipse click File > New > Other > Android Sample Project.
Then select your build target such as Android 4.2.
Then from the list of sample apps select the API Demos app.
And finally click Finish.
There are over 300 demos in the app, so it can be difficult to navigate. You want to look in the Graphics section.
"Android 2D Graphics with Canvas API" by Yevgen Karpenko is pretty good for beginners.
It explains basic concepts like coordinate systems and transformations, shows how to work with text and use different graphics primitives (lines, paths, circles, etc.). It also shows how to use multiple threads in graphics apps.
Below is the link for eBook version on Amazon.
http://www.amazon.com/Android-Graphics-Canvas-API-ebook/dp/B00DKIAVK8/ref=sr_1_8?s=books&ie=UTF8&qid=1374420538&sr=1-8&keywords=android+2d

Must be OpenGL?

I'm new to android and I need to do a project like this : I have 22 images that represent a person which is rotating. When the user touch the right side of an other image the image is changing (the person is rotating to right). The same thing is for left side.
My question is: I must use OpenGL? I made some example with openGL but I don't see if for my project it is necessary. I was thinking that maybe it is enough to change the background image at every touch.
What do you guide me to do?
Thanks in advance
I know this isn't exactly the same thing but this tutorial by the excellent guys at Sony Ericsson show how to make a nice looking 3D list without OpenGL - http://developer.sonyericsson.com/wp/2010/05/20/android-tutorial-making-your-own-3d-list-part-1/
Maybe you could use some of the techniques in this tutorial to achieve what you want?
The OpenGL may be useful to do your project
you can see the Example Code project here code.google.com
And The Blog url that has explained nicely to work with OpenGL has many part of the Tutorial
May be looking at this you can get idea how to go ahead.

where to start for Page flip effect in android?

I have search a lot for page flip effect in android. I found some links. An example for flip without using OpenGL.
But I want to implement a 3D real page flip effect for android. same as This Or the effect you have seen in IReader for android.
According to my search OpenGL must be use for this. I also search some framework that provide the alternative of OpenGL. But at the end I found nothing.
So I am just want to start OpenGL for this. But I have never ever use OpenGL.
Can any one help me for page flip? some useful link, tutorials, Starting up for OpenGL in android etc...
I am using this code. Its really really perfect for any one to understand and use. Thanks a lot to Harism
GitHub Link for Page Curl Animation in android With OpenGL
here is the one i tried today itself and works fine. code.google.com

Categories

Resources