Question

I want to make a something like a draw/game application to practice with the user interaction.

but I want it to work and look like the android's security "unlock pattern". I mean I want to draw the circles and when the user interacts with them by either drawing a line or maybe just marking the circles.. but that is the main idea.

I've been trying to find out how to make it happen but I jut can't find it.

I think would be creating a custom view adding the circles and so on but now sure if this is correct. Maybe with Drawable ? I've tryied with buttons but seance I want to press it one and don't release the screen the onClick event is not being fired.

as well if is a custom view I do can use it withing a Fragment right?

If you can point me in the right direction would be great, I've searched for examples that make something like this but I couldn't found any, so If you can point me to one example I'll be thankful or confirm that creating a Custom View is the way to go and why would that be.

Was it helpful?

Solution

If you're looking for the pattern unlock, you can find the choose lock pattern here from the dev docs.

If you're looking for the new slider style unlock (ICS), you can find some info regarding that here.

Hope that helped.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top